介绍一个我当初在鹅厂写过的吧。
完全的云原生环境下的配置管理。
结合 直接上代码给你看看吧。
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…。
OpenAI CEO 奥特曼前两天发了一篇博文,名字叫「温和...
最近随着天气越来热,各种的“空调”产品也层出不穷,各大群里都...
以色列从来都无法接受伊朗发展核武器,即便两家六七十年代关系亲...
AI 炼丹 推荐 pop!os。 那可是真省心。 nivi...
粤IP*******|网站地图粤IP*******|网站地图 地址: 备案号: