refactor: 优化并整理代码 (#12) #14
Annotations
5 errors
lint:
middlewares/accesslog/builder.go#L122
S1012: should use `time.Since` instead of `time.Now().Sub` (gosimple)
|
lint:
middlewares/activelimit/redislimit/builder.go#L43
S1038: should use fmt.Printf instead of fmt.Println(fmt.Sprintf(...)) (but don't forget the newline) (gosimple)
|
lint:
middlewares/activelimit/locallimit/builder.go#L50
S1023: redundant `return` statement (gosimple)
|
lint:
middlewares/activelimit/redislimit/builder.go#L73
S1023: redundant `return` statement (gosimple)
|
lint
issues found
|