BatteryStatus

package
v0.0.0-...-099f623 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Status

type Status int
const (
	Normal     Status = iota
	LowBattery Status = iota
	Unknown    Status = iota
)

func NewStatus

func NewStatus(name string) Status

NewStatus returns a Status based on the given name. If the name doesn't match any value, the zero-value is returned.

func (Status) String

func (c Status) String() string

String implmenents the fmt.Stringer interface.

Jump to

Keyboard shortcuts

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