Why is GorillaMux not allowing me to pass in a URL as a parameter?
问题 I'm building a URL shortener API and I'm trying to pass a URL into a function using GorillaMux. The route handler is like so: router.HandleFunc("/new/{url}", createURL) The only thing is, if I pass in: https://www.google.com (as in localhost:8080/new/https://www.google.com) then it responds with 404 page not found and the URL is changed to https:/www.google.com. I've tried adding a regexp pattern in with the {url} bit like so: {url:[a-zA-Z0-9/]+} but that didn't seem to work and seems a bit