I am using net/http package in golang 1.22. As it natively supports path parameters, I was looking for a way to get all the key value pairs there are in the URL.
There is a method called PathValue
, but that returns just one value at a time and you would have to guess what path parameter is there.