From 056e15fb6ac33b749b78f83e410e57a9d64aedea Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Sat, 12 Apr 2025 17:57:45 +0200 Subject: refactor: rename Url field to URL As per https://go.dev/wiki/CodeReviewComments#initialisms. --- lexsurf.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lexsurf.go b/lexsurf.go index 1598613..9ac8feb 100644 --- a/lexsurf.go +++ b/lexsurf.go @@ -86,7 +86,7 @@ func (h *handler) handle(w http.ResponseWriter, r *http.Request) { w.Write([]byte("unknown law")) return } - http.Redirect(w, r, val.Url, 302) + http.Redirect(w, r, val.URL, 302) } else { query := r.URL.Query().Get("q") if query != "" { @@ -117,7 +117,7 @@ func (h *handler) handle(w http.ResponseWriter, r *http.Request) { } type law struct { - Url string + URL string Title string Abbr string Redir string -- cgit v1.2.3