介绍一个我当初在鹅厂写过的吧。
完全的云原生环境下的配置管理。
结合 直接上代码给你看看吧。
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…。
如果是当家用媒体服务器,比如跑个plex server,或者...
中美俄发动机寿命对比:美4000小时,俄1000小时,中国是...
发小,重度抑郁,几度自杀未遂,熟人都知道是父母的原因,这里就...
佛山92年,离异没有孩子,接受吗? 年龄:92年 身高体重:...
我把话放这,以菊花这家公司的尿性,永远不会有厂商真心实意为它...
我前段时间去了趟日本穷游,真的是穷游,能步行就不坐车,能喝水...