介绍一个我当初在鹅厂写过的吧。
完全的云原生环境下的配置管理。
结合 直接上代码给你看看吧。
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…。
没什么缺陷,唯一的缺陷就是喜欢动态化的魔怔人太多,当然官方特...
我现在从事服装行业(内衣)。 这么说把,现在的***,想接...
不是 有啥家务? 内衣内裤一定要手洗是不是自己作的? 你说混...
我本以为昨晚干净利落2-0战胜高芙,王欣瑜的表现已经够夸张了...
关注社区OpenGithub社区:***s://open.i...
1 见过发短***维权的,也见过发短***擦边的。 这是第...