In Go 1.22+, you can have URL params parsed by the HTTP Mux. This would greatly simplify parameter handling.