mirror of
https://github.com/henrygd/beszel.git
synced 2026-04-03 11:31:50 +02:00
12 lines
240 B
Go
12 lines
240 B
Go
// Package battery provides functions to check if the system has a battery and return the charge state and percentage.
|
|
package battery
|
|
|
|
const (
|
|
stateUnknown uint8 = iota
|
|
stateEmpty
|
|
stateFull
|
|
stateCharging
|
|
stateDischarging
|
|
stateIdle
|
|
)
|