Skip to content

Commit 902ffb7

Browse files
committed
add yaml tag for LogConfig
1 parent 400d187 commit 902ffb7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pkg/newlog/newlog.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ var (
2222
)
2323

2424
type LogConfig struct {
25-
Path string `json:"path"`
26-
Level string `json:"level"`
27-
MaxSize int `json:"max_size"`
28-
MaxBackup int `json:"max_backup"`
25+
Path string `json:"path" yaml:"path"`
26+
Level string `json:"level" yaml:"level"`
27+
MaxSize int `json:"max_size" yaml:"max_size"`
28+
MaxBackup int `json:"max_backup" yaml:"max_backup"`
2929
}
3030

3131
func setStrLogLevel(level string) {

pkg/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
package pkg
22

3-
const Version = "0.0.1"
3+
var Version = "0.0.1"

0 commit comments

Comments
 (0)