Documentation
¶
Index ¶
- func Get(ctx context.Context, pattern string, def ...interface{}) (*gvar.Var, error)
- func GetBool(ctx context.Context, pattern string, def ...interface{}) (bool, error)
- func GetInt(ctx context.Context, pattern string, def ...interface{}) int
- func GetMapStrStr(ctx context.Context, pattern string, def ...interface{}) map[string]string
- func GetString(ctx context.Context, pattern string, def ...interface{}) string
- type App
- type Config
- type Email
- type Jwt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMapStrStr ¶
Types ¶
type Config ¶
type Config struct {
App *App `json:"app"`
Jwt *Jwt `json:"jwt"`
Email *Email `json:"email"`
// contains filtered or unexported fields
}
配置信息
var Cfg *Config
Click to show internal directories.
Click to hide internal directories.