Chore: use any rather than interface{} (#74066)

This commit is contained in:
Ryan McKinley
2023-08-30 18:46:47 +03:00
committed by GitHub
parent 3e272d2bda
commit 025b2f3011
525 changed files with 2528 additions and 2528 deletions
+3 -3
View File
@@ -13,7 +13,7 @@ import (
func TestTemplate(t *testing.T) {
tmpl := errutil.Internal("template.sampleError").MustTemplate("[{{ .Public.user }}] got error: {{ .Error }}")
err := tmpl.Build(errutil.TemplateData{
Public: map[string]interface{}{
Public: map[string]any{
"user": "grot the bot",
},
Error: errors.New("oh noes"),
@@ -35,7 +35,7 @@ func ExampleTemplate() {
// Construct an error based on the template.
err := tmpl.Build(errutil.TemplateData{
Public: map[string]interface{}{
Public: map[string]any{
"user": "grot the bot",
},
Error: errors.New("oh noes"),
@@ -58,7 +58,7 @@ func ExampleTemplate_public() {
// Construct an error based on the template.
//nolint:errorlint
err := tmpl.Build(errutil.TemplateData{
Public: map[string]interface{}{
Public: map[string]any{
"user": "grot the bot",
},
Error: errors.New("oh noes"),