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

stime

package
v0.66.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 1 Imported by: 21

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StaticTimeService

type StaticTimeService interface {
	Change(update time.Time) time.Time
	Add(d time.Duration) time.Time
	TimeService
}

func NewStaticTimeService

func NewStaticTimeService() StaticTimeService

type TimeService

type TimeService interface {
	Now() time.Time
}

func NewSystemTimeService

func NewSystemTimeService() TimeService

Jump to

Keyboard shortcuts

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