17 lines
213 B
Go
17 lines
213 B
Go
|
package atomfeed
|
||
|
|
||
|
import "errors"
|
||
|
|
||
|
type Icon struct {
|
||
|
*CommonAttributes
|
||
|
URI URI `xml:"uri"`
|
||
|
}
|
||
|
|
||
|
func (i *Icon) Check() error {
|
||
|
if i.URI == "" {
|
||
|
return errors.New("uri element of icon empty")
|
||
|
}
|
||
|
|
||
|
return nil
|
||
|
}
|