envvar

package
v0.0.0-...-b631e0d Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(path, envPrefix string, config interface{}) error

LoadConfig will load files optionally from the json file stored at path, then will override those values based on the envconfig struct tags. The envPrefix is how we prefix our environment variables.

func LoadFile

func LoadFile(path string, config interface{}) error

LoadFile unmarshalls a json file into a config struct

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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