Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDurationWithDefault ¶
GetDurationWithDefault parses a duration string from environment variable with the given key or uses the given default duration. The duration string is a possibly signed sequence of decimal numbers, each with optional fraction and a unit suffix, such as "300ms", "-1.5h" or "2h45m". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.