dashenv

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package dashenv

预定义环境变量管理工具

Predefined environment variable management tools

Index

Constants

View Source
const (
	Dev     = "dev"     //开发环境
	Test    = "test"    //测试环境
	Release = "release" //预发布环境
	Prod    = "prod"    //生产环境
)

Variables

This section is empty.

Functions

func Init

func Init(key string)

Init @Editor robotyang at 2023

Init 使用自定义 环境变量key 进行初始化

func IsDev

func IsDev() bool

IsDev @Editor robotyang at 2023

IsDev 当前是否 开发环境

func IsProd

func IsProd() bool

IsProd @Editor robotyang at 2023

IsProd 当前是否 生产环境

func IsRelease

func IsRelease() bool

IsRelease @Editor robotyang at 2023

IsRelease 当前是否 预发布环境

func IsTest

func IsTest() bool

IsTest @Editor robotyang at 2023

IsTest 当前是否 测试环境

Types

This section is empty.

Jump to

Keyboard shortcuts

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