batt

package
v0.32.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Batteries

func Batteries() ([]battery.Battery, error)

Batteries return all connected batteries information

func IsRunningOnBattery

func IsRunningOnBattery() (bool, int, error)

IsRunningOnBattery returns true if the computer is running on battery, followed by the percentage of battery remaining. If no battery is present the percentage will be 0.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL