Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ID ¶
type ID struct { // Name is the name of the Linux distribution, e.g., ubuntu Name string // Version is the version of the Linux distribution, e.g., 7, 19.04 Version string // Codename is the codename of the Linux distribution, e.g., disco (can be empty) Codename string }
ID represents a Linux distribution
func ParseDescr ¶
ParseDescr parses the description string of a Linux distribution (e.g., centos:6) to a ID structure
Click to show internal directories.
Click to hide internal directories.