env

package
v4.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2018 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsInt

func AsInt(name string, defaultValue int) int

AsInt returns the value of the environment variable (name) as an int. If empty, it returns defaultValue.

func List

func List(name string) []string

List returns the value of the environment variable (name) as a list.

func ListOrDefault

func ListOrDefault(name string, defaultList []string) []string

ListOrDefault returns the value of the environment variable (name) as a list. If not defined, returns a default.

func OrDefault

func OrDefault(name, defaultValue string) string

OrDefault returns the value of the environment variable (name). If empty, it returns defaultValue.

Types

This section is empty.

Jump to

Keyboard shortcuts

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