mock

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2019 License: GPL-3.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 Clock

type Clock struct {
	Time time.Time
}

Clock which can be manipulated.

func New

func New(stamp string) (*Clock, error)

New mock clock.

func (*Clock) Now

func (c *Clock) Now() time.Time

Now returns the manipulated time.

func (*Clock) Update

func (c *Clock) Update(stamp string) error

Update manipulates the time.

Jump to

Keyboard shortcuts

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