aboutsummaryrefslogtreecommitdiffstats
path: root/sys
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 /sys
parent8fb7048c5117ccb592deb5e8e4a62027e6d399cf (diff)
all: use any instead of interface{}
Any is the preferred over interface{} now in Go.
Diffstat (limited to 'sys')
-rw-r--r--sys/syz-extract/extract.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/syz-extract/extract.go b/sys/syz-extract/extract.go
index aa020b029..db0274df1 100644
--- a/sys/syz-extract/extract.go
+++ b/sys/syz-extract/extract.go
@@ -95,7 +95,7 @@ func main() {
tool.Fail(err)
}
- jobC := make(chan interface{}, len(arches)+nfiles)
+ jobC := make(chan any, len(arches)+nfiles)
for _, arch := range arches {
jobC <- arch
}
@@ -152,7 +152,7 @@ func main() {
}
}
-func worker(extractor Extractor, jobC chan interface{}) {
+func worker(extractor Extractor, jobC chan any) {
for job := range jobC {
switch j := job.(type) {
case *Arch: