diff options
Diffstat (limited to 'libgo/go/html/template/content_test.go')
-rw-r--r-- | libgo/go/html/template/content_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/go/html/template/content_test.go b/libgo/go/html/template/content_test.go index b7a39d4..497264e 100644 --- a/libgo/go/html/template/content_test.go +++ b/libgo/go/html/template/content_test.go @@ -12,7 +12,7 @@ import ( ) func TestTypedContent(t *testing.T) { - data := []interface{}{ + data := []any{ `<b> "foo%" O'Reilly &bar;`, CSS(`a[href =~ "//example.com"]#foo`), HTML(`Hello, <b>World</b> &tc!`), @@ -449,7 +449,7 @@ func TestEscapingNilNonemptyInterfaces(t *testing.T) { // A non-empty interface should print like an empty interface. want := new(bytes.Buffer) - data := struct{ E interface{} }{} + data := struct{ E any }{} tmpl.Execute(want, data) if !bytes.Equal(want.Bytes(), got.Bytes()) { |