envvar

package
v0.0.0-...-91eb443 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(filename string) error

Load read the env filename and load it into ENV for this process.

Types

type Configuration

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

Configuration ...

func New

func New(provider Provider) *Configuration

New ...

func (*Configuration) Get

func (c *Configuration) Get(key string) (string, error)

Get returns the value from environment variable `<key>`. When an environment variable `<key>_SECURE` exists the provider is used for getting the value.

type Provider

type Provider interface {
	Get(key string) (string, error)
}

Provider ...

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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