util

package
v0.0.0-...-99409e2 Latest Latest
Warning

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

Go to latest
Published: May 27, 2018 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WallClock = &FnClock{
	NowFn: func() time.Time { return time.Now().UTC() },
}

Functions

func ResourcePath

func ResourcePath(relativePath string) string

Types

type Clock

type Clock interface {
	Now() time.Time
}

type FnClock

type FnClock struct {
	NowFn func() time.Time
}

func (*FnClock) Now

func (f *FnClock) Now() time.Time

Jump to

Keyboard shortcuts

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