all: gofmt -w -r 'interface{} -> any' .

Updates #9687
This commit is contained in:
Bjørn Erik Pedersen
2022-03-17 22:03:27 +01:00
parent 423594e03a
commit b80853de90
342 changed files with 2118 additions and 2102 deletions

View File

@@ -27,8 +27,8 @@ func TestToInt(t *testing.T) {
ns := New()
for i, test := range []struct {
v interface{}
expect interface{}
v any
expect any
}{
{"1", 1},
{template.HTML("2"), 2},
@@ -59,8 +59,8 @@ func TestToString(t *testing.T) {
ns := New()
for i, test := range []struct {
v interface{}
expect interface{}
v any
expect any
}{
{1, "1"},
{template.HTML("2"), "2"},
@@ -87,8 +87,8 @@ func TestToFloat(t *testing.T) {
ns := New()
for i, test := range []struct {
v interface{}
expect interface{}
v any
expect any
}{
{"1", 1.0},
{template.HTML("2"), 2.0},