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
+1 -1
View File
@@ -5,5 +5,5 @@ const (
)
type Logger interface {
Printf(msg string, args ...interface{})
Printf(msg string, args ...any)
}
+1 -1
View File
@@ -2,4 +2,4 @@ package relay_test
type loggerMock struct{}
func (l loggerMock) Printf(format string, args ...interface{}) {}
func (l loggerMock) Printf(format string, args ...any) {}
+1 -1
View File
@@ -3,7 +3,7 @@ package relay
import "sync"
var copyBufferPool = sync.Pool{
New: func() interface{} {
New: func() any {
rv := make([]byte, copyBufferSize)
return &rv