environment

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnvAsFloat32

func GetEnvAsFloat32(key string, defaultValue float32) float32

Returns the float32 value of an environment variable. If the environment variable is not set or cannot be parsed the default value is returned.

func GetEnvAsInt

func GetEnvAsInt(key string, defaultValue int) int

Returns the integer value of an environment variable. If the environment variable is not set or cannot be parsed the default value is returned.

func MustGetEnv added in v0.6.0

func MustGetEnv(key string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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