Documentation ¶
Overview ¶
Package platform queries the underlying operating system
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Platform ¶
type Platform struct { Build string OS string LinuxDistribution string LinuxLSBLike []string Name string PrettyName string Version string }
Platform is a struct containing version information for the underlying operating system
func DefaultPlatform ¶
DefaultPlatform Queries the runtime and then attempts to discover version information from the underlying operating system
func (*Platform) LinuxLSB ¶
LinuxLSB finds Linux LSB files and parses them Most modern :inux distributions have standardized on /etc/os-release
func (*Platform) ParseLSBContent ¶
ParseLSBContent populates a Platform struct with /etc/os-release data
func (*Platform) ParseOSXVersion ¶
ParseOSXVersion Takes output from /usr/bin/sw_vers and stores in a Platform
Click to show internal directories.
Click to hide internal directories.