env

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2019 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAsBool added in v1.2.0

func GetAsBool(variableName string, defaultValue bool) (boolValue bool)

GetAsBool returns value for given environment variable, with default if not found

func GetAsFloat

func GetAsFloat(variableName string, defaultValue float64) (floatValue float64)

GetAsFloat returns value for given environment variable, with default if not found

func GetAsInt

func GetAsInt(variableName string, defaultValue int) (intValue int)

GetAsInt returns value for given environment variable, with default if not found

func GetAsString

func GetAsString(variableName string, defaultValue string) string

GetAsString returns value for given environment variable, with default if not found

func MustGetAsString

func MustGetAsString(variableName string) string

MustGetAsString returns value for given environment variable

Types

This section is empty.

Jump to

Keyboard shortcuts

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