atom/extensionAttribute.go

20 lines
287 B
Go
Raw Normal View History

2024-10-13 17:19:40 +02:00
package atomfeed
import (
"encoding/xml"
"errors"
)
type ExtensionAttribute struct {
Value any `xml:",attr"`
XMLName xml.Name
}
func (e *ExtensionAttribute) Check() error {
if e.Value == nil {
return errors.New("value element of extension attribute empty")
}
return nil
}