env

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2015 License: Apache-2.0 Imports: 2 Imported by: 0

README

go-env

Build Status

Tiny wrapper around getenv() to return an error instead of an empty string when missing.

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(name string) (string, error)

Get env var `name` or return an error if it's missing.

func MustGet

func MustGet(name string) string

MustGet panics if the environment variable is missing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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