Make extensions omitempty
This commit is contained in:
@@ -16,7 +16,7 @@ type Source struct {
|
||||
Subtitle *Text `xml:"subtitle,omitempty"`
|
||||
Title *Text `xml:"title,omitempty"`
|
||||
Updated *Date `xml:"updated,omitempty"`
|
||||
Extensions []*ExtensionElement `xml:",any"`
|
||||
Extensions []*ExtensionElement `xml:",any,omitempty"`
|
||||
}
|
||||
|
||||
func (s *Source) Check() error {
|
||||
|
Reference in New Issue
Block a user