Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OSRelease ¶
type OSRelease struct { Name string PrettyName string ID string Like []string VersionID string ANSIColor string HomeURL string DocumentationURL string SupportURL string BugReportURL string Logo string }
OSRelease contains information from an os-release file
func ParseOSRelease ¶
OSReleaseName returns a struct parsed from the system's os-release file. It checks /etc/os-release as well as /usr/lib/os-release. The first time it's called, it'll parse the os-release file. Subsequent calls will return the same value.
Click to show internal directories.
Click to hide internal directories.