Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EscalatePrivileges ¶
func GetProcessId ¶
func GetSystemDirectories ¶
Types ¶
type BatteryInfo ¶
func GetBatteries ¶
func GetBatteries() BatteryInfo
func (*BatteryInfo) GetBatteryPercent ¶
func (b *BatteryInfo) GetBatteryPercent() float64
* Returns current battery level percent (float64)
func (*BatteryInfo) GetChargingRate ¶
func (b *BatteryInfo) GetChargingRate(raw ...bool) interface{}
* Returns charging rate * * Formatted as string in Watts by default (indicating charge/discharge status) * If optional "raw" parameter is supplied a true value, raw rate in mW is returned
type CpuInfo ¶
func (*CpuInfo) GetCPUInfo ¶
func (c *CpuInfo) GetCPUInfo()
Click to show internal directories.
Click to hide internal directories.