Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data struct { ID string IDLike string Name string PrettyName string Version string VersionID string VersionCodename string }
Data exposes the most common identification parameters.
func Parse ¶
Parse expects the contents of /etc/os-release and populates the fields of a Data object.
func (*Data) IsLikeDebian ¶
IsLikeDebian will return true for Debian and any other related OS, such as Ubuntu.
func (*Data) IsLikeFedora ¶
IsLikeFedora will return true for Fedora and any other related OS, such as CentOS or RHEL.
Click to show internal directories.
Click to hide internal directories.