package power
Types
Source
Source is the currently detected system power source.
const ( SourceUnknown Source = iota SourceAC SourceBattery )
Status
struct
Status is a snapshot of the system power state.
Query
Status.OnBattery
OnBattery returns true when the machine is currently running on battery.