Documentation ¶
Overview ¶
bat implemnts functions for parsing the files in /sys/class/power_supply/BAT0 It furthermore has some utility functions for doing percentage calculations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetChargePercentage ¶
GetChargePercentage will get the current charge percentage - as a float64
func GetCurrentCharge ¶
GetCurrentcharge will return the number given for current charge - as a float64
func GetFullCharge ¶
GetFullCharge will return the number given for full charge - as a float64
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.