Relative Content

Tag Archive for goparsinggo-gingo-fiber

Parsing path parameters dynamically from request url

I am working on a project using the fiber/v2 router, for a request mocking service. Now parameters passed via request body and query parameters are not an issue and handled easily. But here lies the problem with path parameters: Let’s say we have a basic endpoint like http://host.org:port/, I will denote this by “be”. Now for a URL like