app

package
v0.4.24 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Config added in v0.3.3

func Config[T int | string | bool | *services.Config](key string, def T) T

Config 获取config,格式必须是group.key,第二个可选参数为默认值

func Env

func Env() string

Env 获取环境

func GetGoId added in v0.3.5

func GetGoId() uint64

GetGoId 获取跟踪ID, 严禁非开发模式使用 github.com/bigwhite/experiments/blob/master/trace-function-call-chain/trace3/trace.go

func IsDebug

func IsDebug() bool

IsDebug 是否开启调试模式

func Key

func Key() string

Key 如果敏感信息需要加密, 可以使用这个函数获取盐值

func Name

func Name() string

Name 应用名称

func StringToHump added in v0.4.13

func StringToHump(s string) string

StringToHump 蛇形转驼峰

Types

This section is empty.

Directories

Path Synopsis
gen for home toolset
gen for home toolset

Jump to

Keyboard shortcuts

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