envvar

package
v0.0.0-...-9b78ba4 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: Apache-2.0 Imports: 3 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 ...

Jump to

Keyboard shortcuts

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