envconf

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2018 License: MIT Imports: 5 Imported by: 6

Documentation

Overview

Package envconf is configuration loader for the conf package. It loads configuration layers from environment variables. Configuration locators for this loader are regular expressions. Here some examples:

env:^MYAPP_.*"
env:.*

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLoader

func NewLoader() conf.Loader

NewLoader method creates new loader instance.

Types

type EnvLoader

type EnvLoader struct{}

EnvLoader loads configuration layers from environment variables.

func (*EnvLoader) Load

func (p *EnvLoader) Load(loc *conf.Locator) (interface{}, error)

Load method loads configuration layer.

Jump to

Keyboard shortcuts

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