Golang encoding/xml: Difference between revisions

From wikinotes
No edit summary
Line 1: Line 1:
go's builtin library for parsing xml.
go's builtin library for parsing xml.<br>
See also: [[golang encoding]], [[xml]]


{{ WARNING |
wip }}


= Documentation =
= Documentation =

Revision as of 23:13, 25 June 2022

go's builtin library for parsing xml.
See also: golang encoding, xml


Documentation

Tutorials

tutorialedge https://tutorialedge.net/golang/parsing-xml-with-golang/

Struct Tags

See full details here

type User struct {
    Name  `xml:"Name"`       // <User><Name>value</Name></User>
    Color `xml:"color,attr"` // <User color="value"></User>
    Skip  `xml:"-"`          // <User></User>
}

Known issues: