diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2025-12-19 12:52:30 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2025-12-22 02:13:00 +0000 |
| commit | a83befa0d111a0ba6fac52d763e93c76a2ef94d4 (patch) | |
| tree | 7d3c28b24229429936a631e8ceb24135856b257d /dashboard/app/main.go | |
| parent | 8fb7048c5117ccb592deb5e8e4a62027e6d399cf (diff) | |
all: use any instead of interface{}
Any is the preferred over interface{} now in Go.
Diffstat (limited to 'dashboard/app/main.go')
| -rw-r--r-- | dashboard/app/main.go | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
