if you are here in 2025, you can get this information directly from the *http.Request r.URL.Query().Get("id")
r.URL.Query().Get("id")