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/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dashboard/app/main.go') diff --git a/dashboard/app/main.go b/dashboard/app/main.go index 0d2e588b1..3b1749a45 100644 --- a/dashboard/app/main.go +++ b/dashboard/app/main.go @@ -318,7 +318,7 @@ type uiCollapsible struct { Title string Show bool // By default it's collapsed. Type string // Template system understands it. - Value interface{} + Value any } func makeCollapsibleBugJobs(title string, jobs []*uiJob) *uiCollapsible { @@ -1411,7 +1411,7 @@ func handleBugSummaries(c context.Context, w http.ResponseWriter, r *http.Reques return json.NewEncoder(w).Encode(list) } -func writeJSONVersionOf(writer http.ResponseWriter, page interface{}) error { +func writeJSONVersionOf(writer http.ResponseWriter, page any) error { data, err := GetJSONDescrFor(page) if err != nil { return err -- cgit mrf-deployment