envconf

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 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

This section is empty.

Types

type EnvLoader

type EnvLoader struct{}

EnvLoader loads configuration layers from environment variables.

func NewLoader

func NewLoader() *EnvLoader

NewLoader method creates new loader instance.

func (*EnvLoader) Load

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

Load method loads configuration layer from environment variables.

Jump to

Keyboard shortcuts

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