Documentation ¶
Overview ¶
Package parsers contains custom parser funcs for common, non-built-in types
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // URLType is a helper var that represents the `reflect.Type` of `url.URL` URLType = reflect.TypeOf(url.URL{}) // DurationType is a helper var that represents the `reflect.Type` of `time.Duration` DurationType = reflect.TypeOf(time.Nanosecond) )
nolint: gochecknoglobals
Functions ¶
func DurationFunc ¶
DurationFunc is a basic parser for the time.Duration type that should be used with `env.ParseWithFuncs()`
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.