atom/logo.go

17 lines
213 B
Go

package atomfeed
import "errors"
type Logo struct {
*CommonAttributes
URI URI `xml:"uri"`
}
func (l *Logo) Check() error {
if l.URI == "" {
return errors.New("uri element of logo empty")
}
return nil
}