envmap

package
v0.0.0-...-7a50bc8 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvMap

type EnvMap struct {
	Env     map[string]string
	Parent  *EnvMap
	Flatten bool
}

Provides a simple storage layer for environment like variables.

func NewEnvMap

func NewEnvMap() (r *EnvMap)

func (*EnvMap) FlattenMap

func (e *EnvMap) FlattenMap(flatMap bool)

FlattenMap when set to false will not flatten the results of an EnvMap.

func (*EnvMap) Get

func (e *EnvMap) Get(key string) (string, bool)

func (*EnvMap) GetRaw

func (e *EnvMap) GetRaw(key string) (string, bool)

func (*EnvMap) Keys

func (e *EnvMap) Keys() []string

Keys returns an array of the keys of the environment map.

func (*EnvMap) Map

func (e *EnvMap) Map() map[string]string

func (*EnvMap) NewChild

func (e *EnvMap) NewChild() *EnvMap

func (*EnvMap) Set

func (e *EnvMap) Set(key, value string)

func (*EnvMap) Strings

func (e *EnvMap) Strings() []string

Jump to

Keyboard shortcuts

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