battery

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Battery

type Battery struct {
	Name         string
	Model        string
	Manufacturer string
	Serial       string
	Technology   string

	CapacityDesign int64
	CapacityNow    int64
}

Battery store battery info

type BatteryList

type BatteryList []*Battery

BatteryList store battery list

func GetBatteryList

func GetBatteryList() (BatteryList, error)

GetBatteryList return battery list

Jump to

Keyboard shortcuts

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