[question] How to get the Url without Path Params
Author: vijay8059Created Feb 3, 2022Updated Oct 23, 2024
Labelsquestion
Describe the problem you're having
How do i get the url with out path params. eg: http://localhost:8099/v1/random/{id} How do i retrieve the url http://localhost:8099/v1/random/
…
Versions
Go version: go version go1.17.3 darwin/arm64
package version: run
git rev-parse HEADinside the repo
…
"Show me the code!"
A minimal code snippet can be useful, otherwise we're left guessing!
Hint: wrap it with backticks to format it
…
Source: gorilla/mux