Marshalling XML

Go 1 also has support for marshalling data structures into an XML document. The function is

func Marshal(v interface}{) ([]byte, error)

This was used as a check in the last two lines of the previous program.

results matching ""

    No results matching ""