timer

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseStringToTime

func ParseStringToTime(ts string) *time.Time

Types

type BasicTimer

type BasicTimer struct{}

func NewBasicTimer

func NewBasicTimer() *BasicTimer

func (*BasicTimer) Now

func (t *BasicTimer) Now() time.Time

type MockTimer

type MockTimer struct {
	// contains filtered or unexported fields
}

func NewMockTimer

func NewMockTimer(ts string) *MockTimer

func (*MockTimer) Now

func (t *MockTimer) Now() time.Time

func (*MockTimer) SetTime

func (t *MockTimer) SetTime(nt time.Time)

type Timer

type Timer interface {
	Now() time.Time
}

Jump to

Keyboard shortcuts

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