Hacker News new | ask | show | jobs
by grennis 3379 days ago
After seeing URL string parsing in application code I would have expected to see at least some sort of discussion about third-party web frameworks.
2 comments

Even a web framework isn't necessary. Most people get around that nastiness using gorilla/mux: https://github.com/gorilla/mux
Don't you worry, it's not done like that.

Either you use query params, or you use a library like gorilla, where you just insert pattern variables into the url.