linux

package
Version: v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: Unlicense Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// UnameNull is a placeholder.
	UnameNull unameFlags = iota
	// UnameOS is "sysname" or "uname -s".
	UnameOS
	// UnameArch is "machine" or "uname -m".
	UnameArch
	// UnameRelease is "release" or "uname -r".
	UnameRelease
	// UnameDomain is "domainname", the kernel domain name.
	UnameDomain
	// UnameHostname is "Nodename" or "uname -n"
	UnameHostname
	// UnameVersion is "version", or "uname -v".
	UnameVersion
)

Variables

This section is empty.

Functions

func GetUname

func GetUname(unameFlags string) (un string, err error)

GetUname uses system calls to retrieve the same values as the uname linux command

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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