BlogGoLang. Fiber. Passing Array by POSTOne of the great web frameworks for GoLang is called Fiber. It is a relatively new framework but already has set an impressive fingerprint and many more developers check it out each day. I personally like it for the following features. Its really fast, supports routing groups, and has an easy learning curve Being a young framework there are some features that are still not implemented. Here is one such feature. Posting arrays. While developing an online editor for the BCSV format, I had to post a two dimensional array, which Fiber would accept and process. As it turned out Fiber has no method out of the box to accept array POST requests. So to complete the goal I had to find a way to do it myself. Seemed an easy task, but but turned out quite a headache. Took me quite a while to figure it out.
The function above follows the fingerprint of the Fiber framework, so should be straightforward to use.
So happy coding, and hopefully this will save some other poor soul some precious time. Good day, or night :)
|