18 lines
258 B
Go
18 lines
258 B
Go
package opt
|
|
|
|
type svc struct {
|
|
Address string `json:"address"`
|
|
Prefix string `json:"prefix"`
|
|
Cache string `json:"cache"`
|
|
DB string `json:"db"`
|
|
}
|
|
|
|
type config struct {
|
|
Debug bool `json:"debug"`
|
|
Svc svc `json:"svc"`
|
|
}
|
|
|
|
var (
|
|
Cfg = config{}
|
|
)
|