介绍一个我当初在鹅厂写过的吧。
完全的云原生环境下的配置管理。
结合 直接上代码给你看看吧。
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…。
我之前给博客备案,然后接到电话说名字不可以叫“xx博客”,我...
身材还用说吗?真的是好啊! 就看过她演的变形金刚和忍者神龟。...
2022年的8月,我去桂林旅游,在龙脊梯田排队坐缆车的时候,...
我来说一个真实遇到过的例子。 这个例子依赖编译器实现相关的行...
有些库并不值得看,比如archive、compress以及c...
因为没资格,微软在ui设计语言方面跟谷歌一个级别。 Win7...