refactor(conf): 移除冗余的 mapstructure 结构体标签
This commit is contained in:
1 parent
7f68cecf21
commit
ddf28f59cf
6 files changed
+37
-32
No files matched your search
@@ -1,8 +1,8 @@
|
||||
package conf
|
||||
|
||||
type ServerConfig struct {
|
||||
Port int `mapstructure:"port" yaml:"port"`
|
||||
Mode string `mapstructure:"mode" yaml:"mode"` // debug / release
|
||||
AllowOrigins []string `mapstructure:"allow_origins" yaml:"allow_origins"`
|
||||
Version string `mapstructure:"mode" yaml:"version"`
|
||||
Port int `yaml:"port"`
|
||||
Mode string `yaml:"mode"` // debug / release
|
||||
AllowOrigins []string `yaml:"allow_origins"`
|
||||
Version string `yaml:"version"`
|
||||
}
|
||||
Reference in new issue
Block a user