env

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2021 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Instance = &Env{}

Functions

This section is empty.

Types

type Env

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

func New

func New(getEnv func(string) string, environ func() []string) *Env

func (*Env) AddEnv

func (e *Env) AddEnv(env ...string) []string

func (*Env) Get

func (e *Env) Get(env string) string

func (*Env) GetDefault

func (e *Env) GetDefault(env string, def string) string

Jump to

Keyboard shortcuts

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