Open etxnija opened 9 years ago
@etxnija , this is a very old bug. We needed similar ruby like encoding. We have addressed this in our fork https://github.com/appscode/go-querystring .
I'll leave this issue open for anyone that still needs this and wants to implement.
Looks like @tamalsaha's initial implementation was pretty simple: https://github.com/appscode/go-querystring/pull/2
@tamalsaha that one also give wrong for []string
it gives something like this a%5B0%5D=1
instead of a[]=1
I plan to fix the issue described below for encoding nested struct arrays.
Currently this structure
encode to
To be consistent with the Ruby style parsing the result should look like this