Golang encoding/xml: Difference between revisions
From wikinotes
(Created page with "go's builtin library for parsing xml. {{ WARNING | wip }} = Basics = <blockquote> To parse xml within go: * you define <code>MarshallText/UnmarshallText</code> methods on an object * declare a variable with the types you'd like to use * <code>xml.Unmarshall(your_type)</code> will use type info to serialize/deserialize objects </blockquote><!-- Basics -->") |
No edit summary |
||
Line 3: | Line 3: | ||
{{ WARNING | | {{ WARNING | | ||
wip }} | wip }} | ||
= Documentation = | |||
<blockquote> | |||
{| class="wikitable" | |||
|- | |||
| | |||
|- | |||
|} | |||
</blockquote><!-- Documentation --> | |||
= Tutorials = | |||
<blockquote> | |||
{| class="wikitable" | |||
|- | |||
| tutorialedge || https://tutorialedge.net/golang/parsing-xml-with-golang/ | |||
|- | |||
|} | |||
</blockquote><!-- Tutorials --> | |||
= Basics = | = Basics = |
Revision as of 22:10, 25 June 2022
go's builtin library for parsing xml.
WARNING:
wip
Documentation
Tutorials
tutorialedge https://tutorialedge.net/golang/parsing-xml-with-golang/
Basics
To parse xml within go:
- you define
MarshallText/UnmarshallText
methods on an object- declare a variable with the types you'd like to use
xml.Unmarshall(your_type)
will use type info to serialize/deserialize objects