clock

package
v0.8.52 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 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 Clock

type Clock interface {
	Now() time.Time
	NowPointer() *time.Time
}

Clock provides an abstraction over the time package

type SysClock

type SysClock struct{}

SysClock is wrapper over the standard time package

func (*SysClock) Now

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

Now returns time.Now

func (*SysClock) NowPointer

func (c *SysClock) NowPointer() *time.Time

Now returns *time.Now

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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