env

package
v2.6.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2018 License: MIT Imports: 4 Imported by: 106

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandEnv

func ExpandEnv(s string) string

ExpandEnv - like os.ExpandEnv, except supports `_FILE` vars as well

func Getenv

func Getenv(key string, def ...string) string

Getenv - retrieves the value of the environment variable named by the key. If the variable is unset, but the same variable ending in `_FILE` is set, the referenced file will be read into the value. Otherwise the provided default (or an emptry string) is returned.

func GetenvVFS

func GetenvVFS(fs vfs.Filesystem, key string, def ...string) string

GetenvVFS - a convenience function intended for internal use only!

Types

This section is empty.

Jump to

Keyboard shortcuts

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