Relative Content

Tag Archive for restgowebparametersgo-fiber

Dynamic routing with GO and FIBER

I have the need to create an API end point with variable number of params.
The api end point Is /api/endpoint.
After that params will take the form of:
/api/endpoint/rndp1/10/rndp2/12 or /api/endpoint/rndp3/hello/someotherparam/12.andanotherparam/45.
In other words, any number of params between 0 to 10, All used /paramname/paramvalue.
and the order they come in can be random.