介绍一个我当初在鹅厂写过的吧。
完全的云原生环境下的配置管理。
结合 直接上代码给你看看吧。
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…。
我博客的第一篇文章是2006年9月9日发的,最新一篇是202...
还记得第一次来参加HDC,很多人在说PPT,说套壳。 纯血...
热知识: 六代的飞控难度要远大于 B-21。 技术与工程方...
React 某些品味感人。 以前的 CRA 就是一坨不折不...
粤IP*******|网站地图粤IP*******|网站地图 地址: 备案号: