Versions in this module Expand all Collapse all v0 v0.12.0 Nov 12, 2026 Changes in this version + var ErrAllNotNil = fmt.Errorf("All fields had not nil errors") + var ErrNotFound = fmt.Errorf("Not found") + type AgnosticState int8 + const Charging + const Discharging + const Empty + const Full + const Idle + const Undefined + const Unknown + func (s AgnosticState) String() string + type Battery struct + ChargeRate float64 + Current float64 + Design float64 + DesignVoltage float64 + Full float64 + State State + Voltage float64 + func Get(idx int) (*Battery, error) + func GetAll() ([]*Battery, error) + func (b *Battery) String() string + type ErrFatal struct + Err error + func (f ErrFatal) Error() string + type ErrPartial struct + ChargeRate error + Current error + Design error + DesignVoltage error + Full error + State error + Voltage error + func (p ErrPartial) Error() string + type Errors []error + func (e Errors) Error() string + type State struct + Raw AgnosticState + func (s State) Explain() string + func (s State) GoString() string + func (s State) String() string