config

package
v0.0.0-...-454bc57 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2015 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package config provides the ability to load yaml based config file depending on environment variable "GO_ENV".

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingKey    = errors.New("No config filename for the given GO_ENV")
	ErrNoSuchFile    = errors.New("Could not load config file")
	ErrCouldNotParse = errors.New("Could not parse config file")
)

Functions

func NewConfigLoader

func NewConfigLoader() *config

NewConfigLoader returns a new config.

Types

type Filenames

type Filenames map[string]string

Filenames type is used to abstract underlying data type. The key represents current value of GO_ENV environment variable and a value filename in yaml format.

Jump to

Keyboard shortcuts

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