(configFile string)
| 7 | ) |
| 8 | |
| 9 | func NewCenter(configFile string) (*Center, error) { |
| 10 | nacosConf := &Center{} |
| 11 | err := conf.Parse(configFile, nacosConf) |
| 12 | return nacosConf, err |
| 13 | } |
| 14 | |
| 15 | type Center struct { |
| 16 | Nacos Nacos `yaml:"nacos" json:"nacos"` |