aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/ast/parser_test.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/ast/parser_test.go
parent8fb7048c5117ccb592deb5e8e4a62027e6d399cf (diff)
all: use any instead of interface{}
Any is the preferred over interface{} now in Go.
Diffstat (limited to 'pkg/ast/parser_test.go')
-rw-r--r--pkg/ast/parser_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/ast/parser_test.go b/pkg/ast/parser_test.go
index bc66ed4be..199bd7490 100644
--- a/pkg/ast/parser_test.go
+++ b/pkg/ast/parser_test.go
@@ -97,24 +97,24 @@ func TestParse(t *testing.T) {
var parseTests = []struct {
name string
input string
- result []interface{}
+ result []any
}{
{
"empty",
``,
- []interface{}{},
+ []any{},
},
{
"new-line",
`
`,
- []interface{}{},
+ []any{},
},
{
"nil",
"\x00",
- []interface{}{},
+ []any{},
},
}