Properly use xml names
This commit is contained in:
18
source.go
18
source.go
@@ -1,17 +1,21 @@
|
||||
package atom
|
||||
|
||||
import "fmt"
|
||||
import (
|
||||
"encoding/xml"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
type Source struct {
|
||||
XMLName xml.Name `xml:"source"`
|
||||
*CommonAttributes
|
||||
Authors []*Person `xml:"author,omitempty"`
|
||||
Categories []*Category `xml:"category,omitempty"`
|
||||
Categories []*Category `xml:",omitempty"`
|
||||
Contributors []*Person `xml:"contributor,omitempty"`
|
||||
Generator *Generator `xml:"generator,omitempty"`
|
||||
Icon *Icon `xml:"icon,omitempty"`
|
||||
ID *ID `xml:"id,omitempty"`
|
||||
Links []*Link `xml:"link,omitempty"`
|
||||
Logo *Logo `xml:"logo,omitempty"`
|
||||
Generator *Generator `xml:",omitempty"`
|
||||
Icon *Icon `xml:",omitempty"`
|
||||
ID *ID `xml:",omitempty"`
|
||||
Links []*Link `xml:",omitempty"`
|
||||
Logo *Logo `xml:",omitempty"`
|
||||
Rights Text `xml:"rights,omitempty"`
|
||||
Subtitle Text `xml:"subtitle,omitempty"`
|
||||
Title Text `xml:"title,omitempty"`
|
||||
|
Reference in New Issue
Block a user