From a83befa0d111a0ba6fac52d763e93c76a2ef94d4 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 19 Dec 2025 12:52:30 +0100 Subject: all: use any instead of interface{} Any is the preferred over interface{} now in Go. --- dashboard/app/coverage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dashboard/app/coverage.go') diff --git a/dashboard/app/coverage.go b/dashboard/app/coverage.go index 67a4494e0..d10651fef 100644 --- a/dashboard/app/coverage.go +++ b/dashboard/app/coverage.go @@ -111,7 +111,7 @@ func getParam[T int | string | bool | civil.Date](r *http.Request, name string, return extractVal(t, r.FormValue(name)).(T) } -func extractVal(t interface{}, val string) interface{} { +func extractVal(t any, val string) any { switch t.(type) { case int: res, _ := strconv.Atoi(val) -- cgit mrf-deployment