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

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