https://godoc.org/github.com/clbanning/mxj#BeautifyXml does that - but you've got to lug around a pretty large package just for that functionality.
On Monday, December 11, 2017 at 8:12:38 AM UTC-7, Mandolyte wrote: > > At my previous company I had a Go program that would take any XML document > and output it as XML in a nicer human readable format, i.e., pretty > printed. I've trying to find it again, but my searches have not turned up > any. Perhaps I had written myself, but I didn't think so. > > Does anyone have a link to one? > > Thanks in advance, > Cecil > -- 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.