介绍一个我当初在鹅厂写过的吧。
完全的云原生环境下的配置管理。
结合 直接上代码给你看看吧。
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…。
个人办个号,材料审核大半天,多打几个电话,或者接到海外电话,...
1.说明群晖意识到了nas是干嘛的:安全,稳定,低功耗的网络...
我真的服。 USDT这玩意怎么成长起来的?老韭菜都知道当年...
热锅凉油: 阿伟、王刚告诉我倒出来的油以后炒菜还能用(老饭骨...
粤IP*******|网站地图粤IP*******|网站地图 地址: 备案号: