env

package
v2.32.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAsBool

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