Oh, thank you Sam for both of your points. Each is very valuable to me! Oh, and the third one too. :-)
Thanks again! On Sat, Nov 5, 2016 at 12:16 PM, Sam Whited <s...@samwhited.com> wrote: > I should also state that in this example you could of course just use > MarshalIndent, the point was to show that you could do it manually if > you need more customized formatting. > > > On Sat, Nov 5, 2016 at 11:13 AM, Sam Whited <s...@samwhited.com> wrote: > > On Sat, Nov 5, 2016 at 10:57 AM, Tong Sun <suntong...@gmail.com> wrote: > >> So any plan to add beautify a given XML string feature soon? Thx. > > > > No, sorry, I was just pointing out that by manipulating a token stream > > you could probably do it yourself fairly easily. Eg. something like > > this simple example (most of the error handling was ignored here, > > obviously that would not be ideal in a real implementation): > -- 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.