在辦公室用機械鍵盤是什么心里?

介紹一個我當初在鵝廠寫過的吧。
完全的云原生環境下的配置管理。
結合 直接上代碼給你看看吧。
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…。
友情鏈接