envutils

package
v0.0.0-...-b5ce431 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Prod = "prod"
	Test = "test"
	Dev  = "dev"
)

Variables

This section is empty.

Functions

func GetEnv

func GetEnv() string

func IsDev

func IsDev() bool

func IsProd

func IsProd() bool

func IsTest

func IsTest() bool

func LoadEnv

func LoadEnv()

加载当前目录Env文件

func LoadEnvOnlyDev

func LoadEnvOnlyDev()

当处于开发环境时,加载当前目录Env文件

func SetEnv

func SetEnv(env string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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