diff options
author | Oleksandr Redko <Oleksandr_Redko@epam.com> | 2023-11-24 12:33:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-24 11:33:04 +0100 |
commit | f196617f5598f05df49f2c15ffde70a9d908f292 (patch) | |
tree | 17029edd8643ee9c4026d188c5ce5edfe93b1141 /server_test.go | |
parent | Enable wastedassign, whitespace linters; fix issues (#1665) (diff) | |
download | fasthttp-f196617f5598f05df49f2c15ffde70a9d908f292.tar.gz fasthttp-f196617f5598f05df49f2c15ffde70a9d908f292.tar.bz2 fasthttp-f196617f5598f05df49f2c15ffde70a9d908f292.zip |
chore: Use 'any' instead of 'interface{}' (#1666)
gofmt -w -r "interface{} -> any" -l .
Diffstat (limited to 'server_test.go')
-rw-r--r-- | server_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server_test.go b/server_test.go index 5bc7d80..231e5b0 100644 --- a/server_test.go +++ b/server_test.go @@ -1751,7 +1751,7 @@ func TestRequestCtxUserValue(t *testing.T) { } } vlen := 0 - ctx.VisitUserValues(func(key []byte, value interface{}) { + ctx.VisitUserValues(func(key []byte, value any) { vlen++ v := ctx.UserValue(key) if v != value { @@ -4292,7 +4292,7 @@ type testLogger struct { out string } -func (cl *testLogger) Printf(format string, args ...interface{}) { +func (cl *testLogger) Printf(format string, args ...any) { cl.lock.Lock() cl.out += fmt.Sprintf(format, args...)[6:] + "\n" cl.lock.Unlock() |