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 /pkg/signal | |
| parent | 8fb7048c5117ccb592deb5e8e4a62027e6d399cf (diff) | |
all: use any instead of interface{}
Any is the preferred over interface{} now in Go.
Diffstat (limited to 'pkg/signal')
| -rw-r--r-- | pkg/signal/signal.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/signal/signal.go b/pkg/signal/signal.go index 506d65aac..da3aca538 100644 --- a/pkg/signal/signal.go +++ b/pkg/signal/signal.go @@ -101,10 +101,10 @@ func (s Signal) ToRaw() []uint64 { type Context struct { Signal Signal - Context interface{} + Context any } -func Minimize(corpus []Context) []interface{} { +func Minimize(corpus []Context) []any { type ContextPrio struct { prio prioType idx int @@ -124,7 +124,7 @@ func Minimize(corpus []Context) []interface{} { for _, cp := range covered { indices[cp.idx] = struct{}{} } - result := make([]interface{}, 0, len(indices)) + result := make([]any, 0, len(indices)) for idx := range indices { result = append(result, corpus[idx].Context) } |
