env

package
v1.3.29 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorVarNotExist = errors.New("variable not exist")

Functions

This section is empty.

Types

type Env

type Env interface {
	GetInt(k string, def ...int) (int, error)
	GetString(k string, def ...string) (string, error)
	GetBool(k string, def ...bool) (bool, error)
	GetStringArr(k string, def ...[]string) ([]string, error)
	GetIntArr(k string, def ...[]int) ([]int, error)
	Dump() (string, error)
}

func LoadEnv

func LoadEnv(envPath string) (Env, error)

Jump to

Keyboard shortcuts

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