22 lines
565 B
Go
22 lines
565 B
Go
// Copyright (c) 2024 Joshua Rich <joshua.rich@gmail.com>
|
|
//
|
|
// This software is released under the MIT License.
|
|
// https://opensource.org/licenses/MIT
|
|
|
|
package battery
|
|
|
|
//go:generate go run golang.org/x/tools/cmd/stringer -type=batteryLevel -output batteryLevelsStrings.go -linecomment
|
|
const (
|
|
batteryLevelUnknown batteryLevel = iota // Unknown
|
|
batteryLevelNone // None
|
|
_
|
|
batteryLevelLow // Low
|
|
batteryLevelCrit // Critical
|
|
_
|
|
batteryLevelNorm // Normal
|
|
batteryLevelHigh // High
|
|
batteryLevelFull // Full
|
|
)
|
|
|
|
type batteryLevel uint32
|