diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2025-12-19 12:52:30 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2025-12-22 02:13:00 +0000 |
| commit | a83befa0d111a0ba6fac52d763e93c76a2ef94d4 (patch) | |
| tree | 7d3c28b24229429936a631e8ceb24135856b257d /prog/prio.go | |
| parent | 8fb7048c5117ccb592deb5e8e4a62027e6d399cf (diff) | |
all: use any instead of interface{}
Any is the preferred over interface{} now in Go.
Diffstat (limited to 'prog/prio.go')
| -rw-r--r-- | prog/prio.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/prog/prio.go b/prog/prio.go index b64a8a9e2..9cbc5552a 100644 --- a/prog/prio.go +++ b/prog/prio.go @@ -192,7 +192,7 @@ func noteUsage(uses map[string]map[int]weights, c *Syscall, weight int32, dir Di noteUsagef(uses, c, weight, dir, "%v", str) } -func noteUsagef(uses map[string]map[int]weights, c *Syscall, weight int32, dir Dir, str string, args ...interface{}) { +func noteUsagef(uses map[string]map[int]weights, c *Syscall, weight int32, dir Dir, str string, args ...any) { id := fmt.Sprintf(str, args...) if uses[id] == nil { uses[id] = make(map[int]weights) |
