clock

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2018 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