dotenv

package
v0.0.0-...-367fef7 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Test    bool   // 当前是否是测试环境
	RootDir string // 当前运行的二进制所在的目录

)

Functions

func Get

func Get(key string) string

func GetByDefault

func GetByDefault(key string, defaultValue string) string

func GetFloat64ByDefault

func GetFloat64ByDefault(key string, defaultValue float64) float64

func GetInt64ByDefault

func GetInt64ByDefault(key string, defaultValue int64) int64

func GetIntByDefault

func GetIntByDefault(key string, defaultValue int) int

func GetStrArrayByDefault

func GetStrArrayByDefault(key string, defaultValue []string) []string

func Load

func Load() (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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