env

package
v2.5.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCommaSeparatedStringEnvVar

func GetCommaSeparatedStringEnvVar(envVar string, def []string) []string

GetCommaSeparatedStringEnvVar returns the given env var key's value split by comma or the default values

func GetDurationEnvVar

func GetDurationEnvVar(envVar string, def *time.Duration) *time.Duration

GetDurationEnvVar returns the given env var key's value as a Duration or the default value

func GetStringEnvVar

func GetStringEnvVar(envVar string, def *string) *string

GetStringEnvVar returns the given env var key's value or the default value

func GetUint64EnvVar

func GetUint64EnvVar(envVar string, def *uint64) *uint64

GetUint64EnvVar returns the given env var key's value as a uint64 or the default value

func GetUintEnvVar

func GetUintEnvVar(envVar string, def *uint) *uint

GetUintEnvVar returns the given env var key's value as a uint or the default value

Types

This section is empty.

Jump to

Keyboard shortcuts

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