介绍一个我当初在鹅厂写过的吧。
完全的云原生环境下的配置管理。
结合 直接上代码给你看看吧。
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…。
为什么全世界无一人能实现新mac直接全功能稳定装Win 11 arm,或PC直接装macOS arm?
为什么全世界无一人能实现新mac直接全功能稳定装Win 11 arm,或PC直接装macOS arm?...(144 )人阅读时间:2025-06-28 16:25:11
请问一下图中***的名字,谢啦?
请问一下图中***的名字,谢啦?...(144 )人阅读时间:2025-06-28 16:50:11
如何评价邹市明妻子冉莹颖?
如何评价邹市明妻子冉莹颖?...(144 )人阅读时间:2025-06-28 16:45:11
怎么评价fastjson2?
怎么评价fastjson2?...(144 )人阅读时间:2025-06-28 15:50:11