It looks like someone on Stack Overflow has answered your question[1].

You know your needs better than I do, but code generation seems like an 
unnecessarily complex way to unmarshal JSON code. I'd recommend taking a 
look at encoding/json[2] if you haven't already .

1. http://stackoverflow.com/a/40588324
2. http://golang.org/pkg/encoding/json

On Monday, November 14, 2016 at 4:41:50 AM UTC-7, DM wrote:
>
> Crossposting this from stackoverflow 
> <http://stackoverflow.com/questions/40587860/using-easyjson-with-golang>:-
>
> Let's say I have a struct like below:-
>
> //easyjson:json
> type JSONData struct {
>     Data []string}
>
> I want to un-marshal the below json to JSONData struct
>
> {"Data" : ["One", "Two", "Three"]} 
>
> Can someone let me know how can I use easyjson 
> <https://github.com/mailru/easyjson> to un-marshal a json in Golang? I 
> could not find any example in their README
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to