Skip to content
/ osutil Public

Go library to easily detect current operating system, current Linux distribution, macOS version and more...

License

Notifications You must be signed in to change notification settings

wille/osutil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ba7d421 · Jul 29, 2024

History

31 Commits
May 26, 2019
Jul 29, 2024
May 26, 2019
May 11, 2019
Nov 9, 2020
Nov 9, 2020
Nov 9, 2020
Nov 9, 2020
Nov 24, 2021
May 26, 2019
May 11, 2019
May 11, 2019
Nov 9, 2020
May 11, 2019
May 11, 2019
May 11, 2019
May 11, 2019
May 11, 2019
May 11, 2019
Nov 9, 2020
May 11, 2019
Jul 24, 2020

Repository files navigation

osutil

Travis GoDoc Go Report Card

Go library to detect operating system version

Usage

import "github.com/wille/osutil"

// macOS, Windows, Linux, FreeBSD...
osutil.Name

// macOS: 10.17, 10.16...
// Windows: 10, 8.1, Vista...
//
osutil.GetVersion()

// Returns nicely formatted string
// Windows 10, macOS 10.17 Sierra
osutil.GetDisplay()

Releases

No releases published

Packages

No packages published

Languages