介绍一个我当初在鹅厂写过的吧。
完全的云原生环境下的配置管理。
结合 直接上代码给你看看吧。
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…。
因为不舒服啊🥺,想象一下,有硬东西一直卡在胸腔的位置,从中上...
其实居民的储蓄数据在这里摆着,也不能一概而论的就认为储蓄都是...
我玩魔兽世界。 某天在路上捡了一个野生萌新。 可把我稀罕...
隔行如隔山,你当然想不通。 农夫山泉的东方树叶技术含量有多少...
粤IP*******|网站地图粤IP*******|网站地图 地址: 备案号: