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):
>
> https://play.golang.org/p/cBiUv0Xl1k
>
> —Sam
>
>
>
> --
> Sam Whited
> pub 4096R/54083AE104EA7AD3



-- 
Sam Whited
pub 4096R/54083AE104EA7AD3

-- 
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.

Reply via email to