env

package
v0.0.0-...-ecf5411 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetENVValue

func GetENVValue(key string) string

func GetENVValueWithDef

func GetENVValueWithDef(key string, def string) string

Types

type Env

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

func NewEnv

func NewEnv(tlp string) *Env

func (*Env) Parse

func (e *Env) Parse(out io.Writer) error

func (*Env) SetValue

func (e *Env) SetValue(key string, value Stringer)

type Render

type Render func() string

func (Render) String

func (r Render) String() string

type String

type String string

func WithDef

func WithDef(key string, def string) String

func (String) String

func (s String) String() string

type Stringer

type Stringer interface {
	String() string
}

Jump to

Keyboard shortcuts

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