aboutsummaryrefslogtreecommitdiff
path: root/expvarhandler/expvar_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'expvarhandler/expvar_test.go')
-rw-r--r--expvarhandler/expvar_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/expvarhandler/expvar_test.go b/expvarhandler/expvar_test.go
index 6f9f286..e6114d7 100644
--- a/expvarhandler/expvar_test.go
+++ b/expvarhandler/expvar_test.go
@@ -12,7 +12,7 @@ import (
func TestExpvarHandlerBasic(t *testing.T) {
t.Parallel()
- expvar.Publish("customVar", expvar.Func(func() interface{} {
+ expvar.Publish("customVar", expvar.Func(func() any {
return "foobar"
}))
@@ -24,7 +24,7 @@ func TestExpvarHandlerBasic(t *testing.T) {
body := ctx.Response.Body()
- var m map[string]interface{}
+ var m map[string]any
if err := json.Unmarshal(body, &m); err != nil {
t.Fatalf("unexpected error: %v", err)
}