aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/fuzzer/fuzzer.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2025-12-19 12:52:30 +0100
committerAleksandr Nogikh <nogikh@google.com>2025-12-22 02:13:00 +0000
commita83befa0d111a0ba6fac52d763e93c76a2ef94d4 (patch)
tree7d3c28b24229429936a631e8ceb24135856b257d /pkg/fuzzer/fuzzer.go
parent8fb7048c5117ccb592deb5e8e4a62027e6d399cf (diff)
all: use any instead of interface{}
Any is the preferred over interface{} now in Go.
Diffstat (limited to 'pkg/fuzzer/fuzzer.go')
-rw-r--r--pkg/fuzzer/fuzzer.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/fuzzer/fuzzer.go b/pkg/fuzzer/fuzzer.go
index fdfe95518..bd55ca9c6 100644
--- a/pkg/fuzzer/fuzzer.go
+++ b/pkg/fuzzer/fuzzer.go
@@ -210,7 +210,7 @@ func (fuzzer *Fuzzer) processResult(req *queue.Request, res *queue.Result, flags
type Config struct {
Debug bool
Corpus *corpus.Corpus
- Logf func(level int, msg string, args ...interface{})
+ Logf func(level int, msg string, args ...any)
Snapshot bool
Coverage bool
FaultInjection bool
@@ -338,7 +338,7 @@ func (fuzzer *Fuzzer) Next() *queue.Request {
return req
}
-func (fuzzer *Fuzzer) Logf(level int, msg string, args ...interface{}) {
+func (fuzzer *Fuzzer) Logf(level int, msg string, args ...any) {
if fuzzer.Config.Logf == nil {
return
}