clock

package
v0.0.0-...-a8e4d9d Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var System = &SystemClock{}

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Now() time.Time
}
var Default Interface = System

type Static

type Static struct {
	time.Time
}

func At

func At(t time.Time) *Static

func (*Static) Now

func (self *Static) Now() time.Time

type SystemClock

type SystemClock struct{}

func (*SystemClock) Now

func (self *SystemClock) Now() time.Time

Jump to

Keyboard shortcuts

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