envx

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Env

type Env struct{}

func (*Env) Getenv

func (e *Env) Getenv(key string) string

func (*Env) InitMap

func (e *Env) InitMap()

This is so that we can call these functions in our mocks, we dont implement them here but its implemented in our mock package.

func (*Env) Setenv

func (e *Env) Setenv(key string, val string) error

type Environment

type Environment interface {
	Getenv(key string) string
	InitMap()
	Setenv(key string, val string) error
}
var (
	OSEnv Environment
)

Jump to

Keyboard shortcuts

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