Make extensions omitempty

This commit is contained in:
2024-10-13 20:42:17 +02:00
parent 92c794d070
commit 83962a0341
4 changed files with 4 additions and 4 deletions

View File

@@ -20,7 +20,7 @@ type Entry struct {
Summary *Text `xml:"summary,omitempty"`
Title *Text `xml:"title"`
Updated *Date `xml:"updated"`
Extensions []*ExtensionElement `xml:",any"`
Extensions []*ExtensionElement `xml:",any,omitempty"`
}
func (e *Entry) checkAuthors() error {