package distro
import "github.com/tredoe/osutil/distro"
Package distro detects the Linux distribution.
Index ¶
Types ¶
type Distro ¶
type Distro int
Distro represents a distribution of Linux system.
const ( Arch Distro CentOS Debian Fedora Manjaro OpenSUSE Ubuntu )
Most used Linux distributions.
func Detect ¶
Detect returns the Linux distribution.
func (Distro) String ¶
Source Files ¶
- Version
- v1.0.2
- Published
- Jan 10, 2020
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 4 hours ago –
Tools for package owners.