介绍一个我当初在鹅厂写过的吧。
完全的云原生环境下的配置管理。
结合 直接上代码给你看看吧。
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…。
一个成年人单日呼吸次数2~2.5万次,单日消耗氧气量约550...
小米的市值已经超过1.4万亿了 结合雷军其他投资,说他能...
bacon 点燃 Rust:比 cargo-watch 更爽...
坐标深圳南山,男,今年32岁,老婆33,工资税后1万块钱,老...
Solid 很灵活。 它没有和 Web 绑死,没有和特殊的编...
我在游戏行业呆了7、8年,互联网行业呆了2年,实体行业呆了4...