Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultOptions = Options{ TimePrefixEnabled: true, TimePrefixLayout: "2006-01-02T150405", TimePrefixSupportedLayouts: []string{ "2006-01-02T150405-0700", "2006-01-02T150405", }, BeforeExtension: true, MaxExtensionLength: 10, }
View Source
var DefaultRuntime = Runtime{ Clock: clockwork.NewRealClock(), Loc: time.Local, RandInt: rand.Int31, }
View Source
var ErrMissingTime = errors.New("missing timestamp")
Functions ¶
func SetRuntime ¶
func SetRuntime(r Runtime) func()
Types ¶
Click to show internal directories.
Click to hide internal directories.