env

package
v1.9.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBool

func GetBool(key string, defaultValue ...bool) (value, wasSet bool)

GetBool tests whether the environment variable was set and eventually returns its boolean value or a default if passed. In the last case, the environment variable itself would be set.

func GetInt

func GetInt(key string, defaultValue ...int) (value int, wasSet bool)

GetInt tests whether the environment variable was set and eventually returns its integer value or a default if passed. In the last case, the environment variable itself would be set.

func GetStr

func GetStr(key string, defaultValue ...string) (value string, wasSet bool)

GetStr tests whether the environment variable was set and eventually returns its string value. In the last case, the environment variable itself would be set.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL