env

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package env provides a inject.Injector to set values from environment variables. Environment variable strings are parsed by literal.Injector.

Index

Constants

This section is empty.

Variables

Injector is an inject.Injector for parsing environment variables.

Functions

func Inject

func Inject(value reflect.Value, name string) (bool, error)

Inject looks up the environment variable by name, and sets the value via literal.Injector. Only sets value if the environment variable is set, otherwise passes by returning (false, nil).

Types

This section is empty.

Jump to

Keyboard shortcuts

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