clock

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NowFn

type NowFn func() time.Time

NowFn is the function supplied to determine "now"

type Options

type Options interface {
	// SetNowFn sets the nowFn
	SetNowFn(value NowFn) Options

	// NowFn returns the nowFn
	NowFn() NowFn
}

Options represents the options for the clock

func NewOptions

func NewOptions() Options

NewOptions creates new clock options

Jump to

Keyboard shortcuts

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