envs

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cfg = struct {
	Prefix string
}{
	Prefix: "",
}

Cfg default config

Functions

func Env

func Env(e string) string

Env env

func IsDebug

func IsDebug() bool

IsDebug 是否是debug模式

func IsSkipErrorFile

func IsSkipErrorFile() bool

IsSkipErrorFile 是否跳过错误文件

func LoadFile added in v0.0.2

func LoadFile(envFiles ...string) (err error)

LoadFile 加载.env文件并添加前缀

func Parse added in v0.0.2

func Parse() map[string]string

Parse 解析envs map[string]string

func SetDebug

func SetDebug() error

SetDebug 设置debug模式

func SetEnv added in v0.1.0

func SetEnv(e, v string) error

func SetSkipErrorFile

func SetSkipErrorFile() error

SetSkipErrorFile 设置跳过错误

Types

This section is empty.

Jump to

Keyboard shortcuts

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