Documentation ¶
Index ¶
- Variables
- func Clear()
- func Contains(key string) bool
- func Environ() []string
- func Expand(s string) string
- func FormatToArray(data map[string]string) []string
- func Get(key string) string
- func Lookup(key string) (string, bool)
- func Map() map[string]string
- func ParseFile(path string) (map[string]string, error)
- func ParseFileToString(path string) (string, error)
- func Remove(key ...string) error
- func Set(key string, value string) error
- func SetArray(settings []string) error
- func SetMap(m map[string]string) error
- func SetString(setting string) error
- func Unset(key string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Exec = godotenv.Exec
Exec(filenames []string, cmd string, cmdArgs []string) error
View Source
var FormatToEnvString = godotenv.Marshal
View Source
var FormatToMap = godotenv.Unmarshal
View Source
var Load = godotenv.Load
导入 Load(filenames ...string) (err error)
View Source
var Marshal = godotenv.Marshal
转为字符 Marshal(envMap map[string]string) (string, error)
View Source
var Overload = godotenv.Overload
覆盖导入 Overload(filenames ...string) (err error)
View Source
var Parse = godotenv.Parse
解析 Parse(r io.Reader) (envMap map[string]string, err error)
View Source
var Read = godotenv.Read
读取 Read(filenames ...string) (envMap map[string]string, err error)
View Source
var Unmarshal = godotenv.Unmarshal
解析为 map Unmarshal(str string) (envMap map[string]string, err error)
View Source
var Write = godotenv.Write
写入 Write(envMap map[string]string, filename string) error
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.