env

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2014 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(key string, dflt bool) bool

Bool returns a bool from the env

func Cascade added in v0.3.0

func Cascade(keys []string, dflt string) string

Cascade is like Get, but with a bunch of tries

func ExpandSlice

func ExpandSlice(vars []string) []string

ExpandSlice evaluates each string in the slice through os.ExpandEnv

func Get

func Get(key, dflt string) string

Get returns a string from the env

func Slice

func Slice(key, delim string, dflt []string) []string

Slice returns a string slice from the env given a delimiter

func Uint added in v0.4.0

func Uint(key string, dflt uint64) uint64

Uint returns an uint from the env

func UintSize added in v0.4.0

func UintSize(key string, dflt uint64) uint64

UintSize returns a size-like uint from the env

Types

This section is empty.

Jump to

Keyboard shortcuts

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