Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnmarshalOsRelease ¶
Types ¶
type OsRelease ¶
type OsRelease struct {
AnsiColor string `osr:"ANSI_COLOR"`
Name string `osr:"NAME"`
Version string `osr:"VERSION"`
Variant string `osr:"VARIANT"`
VariantID string `osr:"VARIANT_ID"`
ID OsType `osr:"ID"`
IDLike string `osr:"ID_LIKE"`
PrettyName string `osr:"PRETTY_NAME"`
VersionID string `osr:"VERSION_ID"`
HomeURL string `osr:"HOME_URL"`
SupportURL string `osr:"SUPPORT_URL"`
BugReportURL string `osr:"BUG_REPORT_URL"`
}
OsRelease reflects values in /etc/os-release Values in this struct must always be string or the reflection will not work properly.
func GetOsRelease ¶
Click to show internal directories.
Click to hide internal directories.