It was easier than i expected https://play.golang.org/p/olooozwapD
On Friday, 13 January 2017 19:00:14 UTC+1, Ian Davis wrote: > > > > > On Fri, 13 Jan 2017, at 05:17 PM, mail...@gmail.com <javascript:> 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 golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.