environ

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectChangedEnvVar

func DetectChangedEnvVar(env, envCmp []string, names ...string) (name, value string)

Types

type Enver

type Enver interface {
	Environ() []string
	LookupEnv(v string) (string, bool)
	Getenv(string) string
}

type Properties added in v0.0.4

type Properties interface {
	Enver
	PropertyExporter
	Property(key string) (string, bool)
	SetProperty(key, value string)
	MergeProperties(PropertyExporter)
	String() string
}

func CleanEnv

func CleanEnv(envParent, envInner []string) (env Properties)

func CloneProperties added in v0.0.4

func CloneProperties(pr PropertyExporter) Properties

func EnvToProperties added in v0.0.4

func EnvToProperties(env []string) Properties

func NewProperties added in v0.0.4

func NewProperties() Properties

type PropertyExporter

type PropertyExporter interface {
	ExportProperties() map[string]string
}

Jump to

Keyboard shortcuts

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