介绍一个我当初在鹅厂写过的吧。
完全的云原生环境下的配置管理。
结合 直接上代码给你看看吧。
type MyConf struct { TestKey1 string `cm:"testKey1"` TestKey2 int `cm:"testKey2"` TestKey3 struct { SubKey1 string `yaml:"subKey1"` SubKey2 int `yaml:"subKey2"` SubKey3 []string `yaml:"subKey3"` } `cm:"testKey3"` } func (c *MyConf) CMName() string { return "cm-op-config-test" } 使用? myConf := &My…。
不是自拍,他拍算吗。 23年的夏天和好朋友一起去海边,玩了...
长100cm/高80cm,你没说宽是多少,我算你50cm宽,...
当代家庭影音体验正陷入一场集体性困境: 花数十万打造私人影音...
各方互设关卡互不相让的结果。 不说苹果,就是Windows...
粤IP*******|网站地图粤IP*******|网站地图 地址: 备案号: