On Fri, 13 Jan 2017, at 05:17 PM, [email protected] wrote:
>
> Hello,
>
> Ignoring the error does not help
>
> https://play.golang.org/p/a8AIcHWII6
You changed your code by making your JSON valid so this is now a
different problem to the one you originally asked.
You can take advantage of Go's ability to accept nil receivers to make
your code more robust:
https://play.golang.org/p/dAhEqyi94U
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.