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 Http
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMapStrStr ¶
Types ¶
type Config ¶
type Config struct {
AdminServerAddress string `json:"admin_server_address"`
App *App `json:"app"`
Http *Http `json:"http"`
Email *Email `json:"email"`
Debug bool `json:"debug"`
}
配置信息
var Cfg *Config
Click to show internal directories.
Click to hide internal directories.