env

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnvOrBool added in v0.2.4

func GetEnvOrBool(key string, fallback bool) bool

func GetEnvOrInt added in v0.2.3

func GetEnvOrInt(key string, fallback int) int

func GetEnvOrStr added in v0.2.3

func GetEnvOrStr(key, fallback string) string

Types

type EnvLoader

type EnvLoader struct {
	EnvDir      string
	RootEnvFile string
	ChainEnvKey string
	Overload    bool
}

func DefaultEnvLoader

func DefaultEnvLoader() *EnvLoader

func (*EnvLoader) Load

func (e *EnvLoader) Load() error

Jump to

Keyboard shortcuts

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