From 94fee1ac9944968228311da3f7f827d021cbed97 Mon Sep 17 00:00:00 2001 From: Md Mushfiqur Rahim <20mahin2020@gmail.com> Date: Fri, 29 May 2026 12:42:44 +0600 Subject: [PATCH] refactor: replace interface{} with any (Go 1.18+) --- pkg/providers/urlscan/types.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/providers/urlscan/types.go b/pkg/providers/urlscan/types.go index 395650b..7249246 100644 --- a/pkg/providers/urlscan/types.go +++ b/pkg/providers/urlscan/types.go @@ -14,7 +14,7 @@ type apiResponse struct { type searchResult struct { Page archivedPage - Sort []interface{} `json:"sort"` + Sort []any `json:"sort"` } type archivedPage struct { @@ -24,7 +24,7 @@ type archivedPage struct { Status string `json:"status"` } -func parseSort(sort []interface{}) string { +func parseSort(sort []any) string { var sortParam []string for _, t := range sort { switch t.(type) {