Documentation
¶
Overview ¶
Package osrelease parse /etc/os-release More about the os-release: https://www.linux.org/docs/man5/os-release.html
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Path = "/etc/os-release"
Path contains the default path to the os-release file
Functions ¶
Types ¶
type OSRelease ¶
type OSRelease struct {
Name string
Version string
ID string
IDLike string
PrettyName string
VersionID string
HomeURL string
DocumentationURL string
SupportURL string
BugReportURL string
PrivacyPolicyURL string
VersionCodename string
UbuntuCodename string
ANSIColor string
CPEName string
BuildID string
Variant string
VariantID string
Logo string
}
var Release OSRelease
Click to show internal directories.
Click to hide internal directories.