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{} )