More idioms related to go 1.26

This commit is contained in:
9seconds
2026-02-17 23:38:12 +01:00
parent 80b9159ce9
commit 3b03c4a90a
21 changed files with 33 additions and 33 deletions
+2 -2
View File
@@ -9,12 +9,12 @@ import (
var (
sha256HasherPool = sync.Pool{
New: func() interface{} {
New: func() any {
return sha256.New()
},
}
bytesBufferPool = sync.Pool{
New: func() interface{} {
New: func() any {
return &bytes.Buffer{}
},
}