Documentation ¶
Index ¶
Constants ¶
View Source
const Version = "1.4.3"
Version is the package version
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SysInfo ¶
type SysInfo struct { Colors string `json:"-"` CPU string `json:"CPU,omitempty"` Height int `json:"-"` HomeFS string `json:"HomeFS,omitempty"` Host string `json:"Host,omitempty"` IPv4 string `json:"IPv4,omitempty"` IPv6 string `json:"IPv6,omitempty"` Kernel string `json:"Kernel,omitempty"` OS string `json:"OS,omitempty"` RAM string `json:"RAM,omitempty"` RootFS string `json:"RootFS,omitempty"` Shell string `json:"Shell,omitempty"` TTY string `json:"TTY,omitempty"` Uptime string `json:"Uptime,omitempty"` Width int `json:"-"` // contains filtered or unexported fields }
SysInfo is a struct containing relevant system information.
func New ¶
New will return a SysInfo pointer. A list of fields can be supplied if all info is not wanted.
func (*SysInfo) Clear ¶ added in v1.1.2
func (s *SysInfo) Clear()
Clear will remove all system info.
func (*SysInfo) Collect ¶ added in v1.1.2
func (s *SysInfo) Collect()
Collect will get requested system info.
func (*SysInfo) SetDataColors ¶ added in v1.0.24
SetDataColors will set the color values for the field data. See gitlab.com/mjwhitta/hilighter for valid colors.
func (*SysInfo) SetFieldColors ¶ added in v1.0.24
SetFieldColors will set the color values for the field names. See gitlab.com/mjwhitta/hilighter for valid colors.
Click to show internal directories.
Click to hide internal directories.