Documentation ¶
Overview ¶
Functions to determine the operating system/distribution name, version, etc.
Index ¶
- func DisplayTerminalColors()
- func GetDistro() (string, error)
- func GetInstalledPackages() (int, string, error)
- func GetKernelVersion() (string, error)
- func GetShell() (string, error)
- func GetShellVersion() (string, error)
- func GetSystemUptime() (string, error)
- func GetTerminal() (string, error)
- func GetUserHost() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisplayTerminalColors ¶
func DisplayTerminalColors()
func GetInstalledPackages ¶
GetInstalledPackages returns the number and type of installed packages.
func GetKernelVersion ¶
GetKernelVersion returns the current running kernel version.
func GetShellVersion ¶
GetShellVersion returns the version of the current shell being used.
func GetSystemUptime ¶
GetSystemUptime returns the current system uptime in a human-readable format.
func GetTerminal ¶
GetTerminal returns the name of the current terminal being used.
func GetUserHost ¶
GetUserHost returns the current user and hostname in the format user@hostname.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.