Properly use xml names
This commit is contained in:
16
entry.go
16
entry.go
@@ -1,6 +1,7 @@
|
||||
package atom
|
||||
|
||||
import (
|
||||
"encoding/xml"
|
||||
"errors"
|
||||
"fmt"
|
||||
"strings"
|
||||
@@ -12,16 +13,17 @@ import (
|
||||
// a non-empty atom:summary element when the entry contains no atom:content
|
||||
// element.
|
||||
type Entry struct {
|
||||
XMLName xml.Name `xml:"entry"`
|
||||
*CommonAttributes
|
||||
Authors []*Person `xml:"author,omitempty"`
|
||||
Categories []*Category `xml:"category,omitempty"`
|
||||
Content Content `xml:"content,omitempty"`
|
||||
Contributors []*Person `xml:"contributors,omitempty"`
|
||||
ID *ID `xml:"id"`
|
||||
Links []*Link `xml:"link,omitempty"`
|
||||
Authors []*Person `xml:"author,omitempty"`
|
||||
Categories []*Category `xml:",omitempty"`
|
||||
Content Content `xml:",omitempty"`
|
||||
Contributors []*Person `xml:"contributors,omitempty"`
|
||||
ID *ID
|
||||
Links []*Link `xml:",omitempty"`
|
||||
Published *Date `xml:"published,omitempty"`
|
||||
Rights Text `xml:"rights,omitempty"`
|
||||
Source *Source `xml:"source,omitempty"`
|
||||
Source *Source `xml:",omitempty"`
|
||||
Summary Text `xml:"summary,omitempty"`
|
||||
Title Text `xml:"title"`
|
||||
Updated *Date `xml:"updated"`
|
||||
|
Reference in New Issue
Block a user