介绍一个我当初在鹅厂写过的吧。
完全的云原生环境下的配置管理。
结合 直接上代码给你看看吧。
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…。
MacBook的诱惑在哪里?
MacBook的诱惑在哪里?...(144 )人阅读时间:2025-06-27 15:00:14
雷军为什么不愿意用性价比打法进军NAS?
雷军为什么不愿意用性价比打法进军NAS?...(144 )人阅读时间:2025-06-27 14:30:14
现在工作中k8s是使用containerd还是docker来管理容器?
现在工作中k8s是使用containerd还是docker来管理容器?...(144 )人阅读时间:2025-06-27 14:10:13
大家如何看待出卖身体的女生?
大家如何看待出卖身体的女生?...(144 )人阅读时间:2025-06-27 14:00:13