env

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Walk

func Walk(fn WalkFunc) error

Walk walks through all environment variables.

Types

type Loader

type Loader struct {
	Prefix string
}

Loader loads environment variables to given map. Only names starting with Prefix are added (without Prefix).

func (*Loader) Load

func (l *Loader) Load(keys map[string]string) error

type WalkFunc

type WalkFunc func(name, value string) error

WalkFunc is the type of the function called for each key visited by Walk.

Jump to

Keyboard shortcuts

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