display

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: ISC Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

func Format(d time.Duration) *genfuncs.Result[string]

Format a time.Duration into a string for the format `HH:MM.SS`.

func Timer

func Timer(duration time.Duration, color tcell.Color, font typeface.Font, eod bool)

Timer runs for given time.Duration, tcell.Color, and typeface.Font.

Types

type StopChannel added in v0.0.17

type StopChannel chan bool

StopChannel a bool channel.

func RepeatUntilStopped added in v0.0.17

func RepeatUntilStopped(delay time.Duration, f func()) StopChannel

RepeatUntilStopped creates a goroutine that loops, waiting the delay provided and then calling the function provided. The loop can be stopped by sending a value to returned StopChannel.

Jump to

Keyboard shortcuts

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