env

package
v2.0.3 Latest Latest
Warning

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

Go to latest
Published: May 2, 2021 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

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