env

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2021 License: MIT Imports: 2 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert added in v1.1.0

func Assert(env string) bool

Assert verifies that the environment variable 'env' is defined and returns a non-empty value.

func GetInt

func GetInt(env string, def int64) int64

GetInt returns the environment variable ENV['env'] or def if 'env' is not set.

func GetString

func GetString(env, def string) string

GetString returns the environment variable ENV['env'] or def if 'env' is not set. Note: def is only returned if the 'env' is not set, i.e. an EMPTY 'env' is still returned !

Types

This section is empty.

Jump to

Keyboard shortcuts

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