posix

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetArchitecture

func GetArchitecture() string

GetArchitecture: it returns the result from `uname -m`

func GetHostname

func GetHostname() string

GetHostname: it returns the hostname

func GetKernel added in v0.0.6

func GetKernel() string

GetKernel: get the kernel version from uname

func GetShell

func GetShell() string

GetShell: it returns the current shell

func GetTerminalSize

func GetTerminalSize() (int, int)

GetTerminalSize: it returns the current terminal size

func GetUname

func GetUname() unix.Utsname

GetUname: it return the `uname` on Go!

func GetUptime

func GetUptime() string

GetUptime: it gets uptime from system

func GetUptimeFromShell

func GetUptimeFromShell() string

GetUptimeFromShell: it uses command `uptime` and return the result

func GetUsername

func GetUsername() string

GetUsername: it returns the username from whom is running the program

Types

This section is empty.

Jump to

Keyboard shortcuts

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