Add optional xmlns to AtomEntry

This allows individual entries to be marshalled to XML with a valid
xmlns. It's optional so entries in a feed don't get an xmlns of
their own.
This commit is contained in:
James Gregory
2013-10-01 18:31:08 +10:00
parent 815ce4be83
commit bbabaefd18
+1
View File
@@ -41,6 +41,7 @@ type AtomContributor struct {
type AtomEntry struct {
XMLName xml.Name `xml:"entry"`
Xmlns string `xml:"xmlns,attr,omitempty"`
Title string `xml:"title"` // required
Updated string `xml:"updated"` // required
Id string `xml:"id"` // required