distro

package
v0.0.0-...-df294a2 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Functions to determine the operating system/distribution name, version, etc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisplayTerminalColors

func DisplayTerminalColors()

func GetDistro

func GetDistro() (string, error)

func GetInstalledPackages

func GetInstalledPackages() (int, string, error)

GetInstalledPackages returns the number and type of installed packages.

func GetKernelVersion

func GetKernelVersion() (string, error)

GetKernelVersion returns the current running kernel version.

func GetShell

func GetShell() (string, error)

GetShell returns the name of the current shell being used.

func GetShellVersion

func GetShellVersion() (string, error)

GetShellVersion returns the version of the current shell being used.

func GetSystemUptime

func GetSystemUptime() (string, error)

GetSystemUptime returns the current system uptime in a human-readable format.

func GetTerminal

func GetTerminal() (string, error)

GetTerminal returns the name of the current terminal being used.

func GetUserHost

func GetUserHost() (string, error)

GetUserHost returns the current user and hostname in the format user@hostname.

Types

This section is empty.

Jump to

Keyboard shortcuts

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