clock

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clocker

type Clocker interface {
	Now() time.Time
}

func NewFixClocker

func NewFixClocker(isAsia bool) Clocker

func NewRealClocker

func NewRealClocker() Clocker

type FixedClocker

type FixedClocker struct {
	IsAsia bool
}

func (FixedClocker) Now

func (fc FixedClocker) Now() time.Time

type RealClocker

type RealClocker struct{}

func (RealClocker) Now

func (r RealClocker) Now() time.Time

Jump to

Keyboard shortcuts

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