Documentation
¶
Overview ¶
该文件主要是为了封装config
Index ¶
Constants ¶
View Source
const (
CONFIGPATH = "conf/config.toml" //配置文件默认位置
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Age int
Cats []string
Pi float64
Perfection []int
DOB time.Time // requires `import time`
DB DB
Redis Redis
Mongodb Mongodb
}
配置实体
var (
Conf *Config // 配置
)
type DB ¶
type Mongodb ¶
Source Files
¶
- config.go
- parse.go
Click to show internal directories.
Click to hide internal directories.