Go library to detect operating system version
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()