app

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: MIT Imports: 2 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 IsDebug

func IsDebug() bool

IsDebug 是否开启调试模式

func Key

func Key() string

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

func Name

func Name() string

Name 应用名称

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