env

package
v0.38.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get() (string, error)

func GetOrSet

func GetOrSet(defaultEnv string) (string, error)

func GetPath

func GetPath() string

func Set

func Set(env string) error

func SetAppName

func SetAppName(name string)

Types

type EnvFile

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

func New

func New(name string) *EnvFile

func (*EnvFile) Get

func (e *EnvFile) Get() (string, error)

func (*EnvFile) GetOrDefault added in v0.25.2

func (e *EnvFile) GetOrDefault(defaultEnv string) (string, error)

func (*EnvFile) GetPath

func (e *EnvFile) GetPath() string

func (*EnvFile) Set

func (e *EnvFile) Set(env string) error

Jump to

Keyboard shortcuts

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