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

@@ -10,7 +10,7 @@ type Person struct {
Name string `xml:"name"`
URI URI `xml:"uri,omitempty"`
Email EmailAddress `xml:"email,omitempty"`
Extensions []*ExtensionElement `xml:",any"`
Extensions []*ExtensionElement `xml:",any,omitempty"`
}
func (p *Person) Check() error {