Help us shape the future of Go! Take the 2026 Go Developer Survey

clock

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSystemClock

func NewSystemClock() ports.Clock

NewSystemClock creates a new system clock that implements ports.Clock.

Types

type SystemClock

type SystemClock struct{}

SystemClock implements shared.Clock using time.Now().

func (SystemClock) Now

func (SystemClock) Now() time.Time

Jump to

Keyboard shortcuts

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