envloader

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const EnvFileTemplate = `` /* 250-byte string literal not displayed */
View Source
const FieldsTableTemplate = `` /* 262-byte string literal not displayed */

Variables

This section is empty.

Functions

func DefaultKeyNormalizer

func DefaultKeyNormalizer(s string) string

Types

type Loader

type Loader struct {
	Env            []string
	Normalizer     func(string) string
	Prefix         string
	DescriptionKey string
	// contains filtered or unexported fields
}

func NewLoader

func NewLoader(m *cfgmetadata.MetaData) *Loader

func (*Loader) GetPossibleKeys

func (cl *Loader) GetPossibleKeys() []string

func (*Loader) Load

func (cl *Loader) Load() error

func (*Loader) PrintFields

func (cl *Loader) PrintFields(w io.WriteCloser, t string) error

func (*Loader) WithDescriptionKey

func (cl *Loader) WithDescriptionKey(key string) *Loader

func (*Loader) WithEnv

func (cl *Loader) WithEnv(e []string) *Loader

func (*Loader) WithNormalizer

func (cl *Loader) WithNormalizer(f func(string) string) *Loader

func (*Loader) WithPrefix

func (cl *Loader) WithPrefix(p string) *Loader

Jump to

Keyboard shortcuts

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