Yes, I also need to put '[' at first and ']' at last position. But I was checking if there is any better way to do it. I was even having question how can someone make it better without unmarshalling JSON and remarshalling merged object.
On Mon, Jan 20, 2020 at 4:12 AM Tamás Gulácsi <tgulacs...@gmail.com> wrote: > Just put the missing [,] chars wher it's required with buf.WriteByte. > > -- > 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. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/00bb4351-e400-46a6-aec1-05124a966410%40googlegroups.com > . > -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAP3P0bzvHPbTDKiihuzMNxC40x%3DpNsgZNWh1momYTpDTVvzvfA%40mail.gmail.com.