Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Duration

func Duration(name string, def time.Duration) time.Duration

Duration returns the duration value of an environment variable. The default value is returned if the environment variable is not set or could not be parsed as a valid duration.

func Integer

func Integer(name string, def int) int

Integer returns the integer value of an environment variable. The default value is returned if the environment variable is not set or could not be parsed as an integer.

Types

This section is empty.

Source Files