envy

package
v0.0.0-...-4b78388 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2014 License: MIT Imports: 5 Imported by: 86

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustGet

func MustGet(key string) string

MustGet looks up the value for the given environment variable. It panics If the value is an empty string.

Types

type Env

type Env map[string]string

Env represents the values parsed from the .env file

func Bootstrap

func Bootstrap() (Env, error)

Bootstrap loads a .env file into the current environment using envy.Load

func Load

func Load(reader io.Reader) (Env, error)

Load parses lines of a reader in the .env format.

Jump to

Keyboard shortcuts

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