Categorygithub.com/jiphex/environ
modulepackage
1.2.1
Repository: https://github.com/jiphex/environ.git
Documentation: pkg.go.dev

# README

environ

GoDoc

Go environment parsing package

# Functions

FakeEmptyEnvironment is an implementation of LookupEnvironmentFunc which always pretends that the requested value was not set in the environment.
FakeLookupEnv is an implementation of the LookupEnvironmentFunc function based around a map[string]string.
ToString returns a redacted representation of es.
UnmarshalEnvironment does the work of converting environment variables into an EnvironmentState using the struct tags on EnvironmentState.
UnmarshalFromOS just reads the real environment variables and sets the state.

# Constants

No description provided by the author

# Structs

StateVar is a processed struct tag of a parsed environment variable field.

# Type aliases

LookupEnvironmentFunc is an interface to allow swapping out of os.LookupEnv.