refactor(conf): 移除冗余的 mapstructure 结构体标签
This commit is contained in:
1 parent
7f68cecf21
commit
ddf28f59cf
6 files changed
+37
-32
No files matched your search
@@ -1,11 +1,11 @@
|
||||
package conf
|
||||
|
||||
type LoggerConfig struct {
|
||||
Prefix string `mapstructure:"prefix" yaml:"prefix"`
|
||||
Level string `mapstructure:"level" yaml:"level"`
|
||||
Filename string `mapstructure:"filename" yaml:"filename"`
|
||||
MaxSize int `mapstructure:"max_size" yaml:"max_size"`
|
||||
MaxBackups int `mapstructure:"max_backups" yaml:"max_backups"`
|
||||
MaxAge int `mapstructure:"max_age" yaml:"max_age"`
|
||||
Compress bool `mapstructure:"compress" yaml:"compress"`
|
||||
Prefix string `yaml:"prefix"`
|
||||
Level string `yaml:"level"`
|
||||
Filename string `yaml:"filename"`
|
||||
MaxSize int `yaml:"max_size"`
|
||||
MaxBackups int `yaml:"max_backups"`
|
||||
MaxAge int `yaml:"max_age"`
|
||||
Compress bool `yaml:"compress"`
|
||||
}
|
||||
Reference in new issue
Block a user