envconf

package
v2.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 5 Imported by: 0

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 Loader added in v2.0.2

type Loader struct{}

Loader loads configuration layers from environment variables.

func NewLoader

func NewLoader() *Loader

NewLoader method creates new loader instance.

func (*Loader) Load added in v2.0.2

func (l *Loader) Load(loc *conf.Locator) (any, 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