environment

package
v1.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BusinessPlatform

func BusinessPlatform() string

BusinessPlatform 这个业务平台是后加的, 为了提升兼容性, 就没有把获取方法加在 Environment interface中. 而是加在 environment 包中.

func InitBusinessPlatform

func InitBusinessPlatform(businessPlatform string)

func InitEnv

func InitEnv(env string)

Types

type Environment

type Environment interface {
	Value() string
	IsDev() bool
	IsTest() bool
	IsPre() bool
	IsPro() bool
}

Environment 环境配置.

func Active

func Active() Environment

Active 当前配置的env

Jump to

Keyboard shortcuts

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