// Package battery provides functions to check if the system has a battery and to get the battery stats. package battery const ( stateUnknown uint8 = iota stateEmpty stateFull stateCharging stateDischarging stateIdle )