Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
Get returns the environment variable associated with the given key. Returns the fallback value if not exists.
func GetInt ¶ added in v0.3.0
GetInt converts the environment variable associated with the given key to int and returns it. Returns the fallback value if the key is not exists or the value is invalid.
func MustGet ¶ added in v0.2.0
MustGet returns the environment variable associated with the given key, and panics if the key is not exists.
func MustGetInt ¶ added in v0.3.0
MustGetInt converts the environment variable associated with the given key to int and returns it. Panics if the key is not exists or the value is invalid.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.