Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetRuntime ¶
func SetRuntime(os OperatingSystem)
SetRuntime sets the runtime environment to the specified operating system.
Types ¶
type OperatingSystem ¶
type OperatingSystem string
OperatingSystem type defines the supported operating systems.
const ( Unknown OperatingSystem = "unknown" Windows OperatingSystem = "windows" Linux OperatingSystem = "linux" MacOS OperatingSystem = "darwin" )
func DetectOS ¶
func DetectOS() OperatingSystem
DetectOS detects and returns the current operating system.
func GetCurrentOS ¶
func GetCurrentOS() OperatingSystem
GetCurrentOS returns the currently set operating system or detects it if not set.
Click to show internal directories.
Click to hide internal directories.