介绍一个我当初在鹅厂写过的吧。
完全的云原生环境下的配置管理。
结合 直接上代码给你看看吧。
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…。
开发数据库可太容易,不就 CURD 么,10 行不到就解决了...
从上海到北京,直线距离1050公里,乘坐客机需要2小时20分...
轴体命名这件事情我一直不知道在吐槽什么,有人问现在为什么要用...
这个问题不太好回答,尤其是用通俗语言不太好回答。 但是有些...
粤IP*******|网站地图粤IP*******|网站地图 地址: 备案号: