]> Cypherpunks repositories - gostls13.git/commit
encoding/xml: add MarshalIndent and move the example
authorGustavo Niemeyer <gustavo@niemeyer.net>
Thu, 16 Feb 2012 04:01:46 +0000 (02:01 -0200)
committerGustavo Niemeyer <gustavo@niemeyer.net>
Thu, 16 Feb 2012 04:01:46 +0000 (02:01 -0200)
commitaed20a6951948ef7f6edd1f4160fc8c1d3e8df56
tree1cc59178ad11dc8b34e15a41c59171aa57552f06
parent0fc441b053097ad07f20a77cb1a71a366b820a01
encoding/xml: add MarshalIndent and move the example

An unindented XML example is hard to follow. MarshalIndent
allows moving the example over to a test file (and fixing it).

R=golang-dev, r, gustavo, r, rsc
CC=golang-dev
https://golang.org/cl/5674050
src/pkg/encoding/xml/example_test.go [new file with mode: 0644]
src/pkg/encoding/xml/marshal.go