envMap

package
v1.5.95 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvKind

type EnvKind int8
const (
	UnknownKind       EnvKind = 0 // 未知环境
	Web               EnvKind = 1 // PC网站
	Wap               EnvKind = 2 // 手机web
	WechatMiniProgram EnvKind = 3 // 微信小程序
	BaiduMiniProgram  EnvKind = 4 // 百度小程序
	TikTokProgram     EnvKind = 5 // 抖音小程序
	AliMiniProgram    EnvKind = 6 // 支付宝小程序
	WechatWap         EnvKind = 7 // 微信浏览器网站
)

func GetStruct

func GetStruct(number int8) EnvKind

GetStruct 根据值获取对象

func (EnvKind) String

func (o EnvKind) String() string

String 获取中文解释

func (EnvKind) Value

func (o EnvKind) Value() int8

Value 获取对应值

Jump to

Keyboard shortcuts

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