gonfigenv

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2020 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvSource

type EnvSource struct {
	// contains filtered or unexported fields
}

EnvSource implements logic or reading application parameters from the environment variables.

func NewEnvSource

func NewEnvSource(prefix string, tolower bool) *EnvSource

NewEnvSource returns EnvSource. if tolower is true, the envvar code will be lower cased before applying to config container.

func (*EnvSource) ApplyTo

func (s *EnvSource) ApplyTo(g gonfig.Configer, ow bool) error

CopyTo copies environment variables starting with prefix.

Jump to

Keyboard shortcuts

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