Documentation
¶
Overview ¶
Package hostinfo provides high-level details about the runtime OS.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct {
// The platform is a high-level description of the OS. This maps to GOOS.
Platform string `json:"platform" yaml:"platform"`
// Arch maps to runtime.
Arch string `json:"arch" yaml:"arch"`
// The name of the kernel used by the operating system.
Kernel string `json:"kernel,omitempty" yaml:"kernel,omitempty"`
// The specific version of the kernel.
KernelVersion string `json:"kernel_version,omitempty" yaml:"kernel_version,omitempty"`
// The variant or distribution of the kernel.
Variant string `json:"variant,omitempty" yaml:"variant,omitempty"`
// The version of the variant.
VariantVersion string `json:"variant_version,omitempty" yaml:"variant_version,omitempty"`
}
Info encapsulates OS info.
Click to show internal directories.
Click to hide internal directories.