介绍一个我当初在鹅厂写过的吧。
完全的云原生环境下的配置管理。
结合 直接上代码给你看看吧。
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…。
这次化债是不是意味未来大通胀?
云南作为之前的西南大省为什么发展不起来?
应该如何看待群晖在DSM 7.2.2-72803更新中去掉了Video Station?
Linux 下有没有类似 Everything 的搜索工具?
国内的银行软件搞所谓的“安全键盘”是不是有什么大病?
现在个人博客不能备案了吗?