power

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2018 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Battery

type Battery struct {
	Charge    string
	Remaining string
	// contains filtered or unexported fields
}

func NewBattery

func NewBattery() *Battery

func (*Battery) Refresh

func (battery *Battery) Refresh()

func (*Battery) String

func (battery *Battery) String() string

type Widget

type Widget struct {
	wtf.TextWidget

	Battery *Battery
}

func NewWidget

func NewWidget() *Widget

func (*Widget) Refresh

func (widget *Widget) Refresh()

Jump to

Keyboard shortcuts

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