widget

package
v0.0.0-...-35989ec Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ZeroedTime      int = 0
	ZeroedStepper   int = 1
	DefaultShowTime int = 100
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Widget

type Widget struct {
	// contains filtered or unexported fields
}

func NewBar

func NewBar(template string) *Widget

NewBar returns new copy of widget that is shown in terminal

func (*Widget) InitBar

func (w *Widget) InitBar(barTime int)

func (*Widget) Tick

func (w *Widget) Tick()

func (*Widget) Update

func (w *Widget) Update(state *pomodoro.State)

Jump to

Keyboard shortcuts

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