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 = iota + 1
	CentOS
	Debian
	Fedora
	Gentoo
	Mageia
	OpenSUSE
	PCLinuxOS
	Slackware
	Ubuntu
)

Most used Linux distributions.

func Detect

func Detect() (Distro, error)

Detect returns the Linux distribution.

func (Distro) String

func (s Distro) String() string

Source Files

distro.go

Version
v1.0.0
Published
Oct 18, 2019
Platform
js/wasm
Imports
2 packages
Last checked
1 day ago

Tools for package owners.