chore: apply golangci-lint fmt

This commit is contained in:
yusing
2026-02-21 12:56:51 +08:00
parent ee973f7997
commit dea37a437b
14 changed files with 57 additions and 45 deletions

View File

@@ -46,7 +46,7 @@ func BenchmarkRules(b *testing.B) {
})
b.Run("RunHandler", func(b *testing.B) {
var r = &http.Request{
r := &http.Request{
Body: io.NopCloser(bytes.NewReader([]byte(""))),
URL: &url.URL{Path: "/api/users/"},
}
@@ -59,8 +59,7 @@ func BenchmarkRules(b *testing.B) {
})
}
type noopResponseWriter struct {
}
type noopResponseWriter struct{}
func (w noopResponseWriter) Header() http.Header {
return http.Header{}