distro

package
v0.0.0-...-d459dd1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package distro detects the Linux distribution.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL