go-querystring icon indicating copy to clipboard operation
go-querystring copied to clipboard

How to encode nested structure by my way?

Open wqshr12345 opened this issue 3 years ago • 1 comments

As you showed in the demo, for a struct, the encoded value is “user[name]=acme&user[addr][postcode]=1234&user[addr][city]=SFO”, If I don't want to use "[]" to split, but ".", like“user.name=acme&user.addr.postcode=1234&user.addr.city=SFO”,Is there a way to achieve this?Thank you.

wqshr12345 avatar Aug 08 '22 08:08 wqshr12345