介绍一个我当初在鹅厂写过的吧。
完全的云原生环境下的配置管理。
结合 直接上代码给你看看吧。
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…。
昨天的 GCP 全球宕机事故报告出了,给大家解读下。 从 ...
首先,张小凡的资质不能说是愚钝。 周一仙沉默片刻,却微微摇...
这张照片拍摄于2024年,中国女子100米栏运动员吴艳妮和夏...
前几天奥运,看了几次福原爱和方博的直播切片,感觉有点可怕。 ...
今年36岁了,现任某区***办主任,平时应该还算成熟稳重。 ...
用webman重写了公司老旧的TP项目,管理后台这种几乎也没...