diff --git a/pkg/rss/ISO-8859-1.go b/pkg/rss/ISO-8859-1.go index 1180485..6214b10 100644 --- a/pkg/rss/ISO-8859-1.go +++ b/pkg/rss/ISO-8859-1.go @@ -37,7 +37,7 @@ func (cs *charsetISO88591er) ReadByte() (b byte, err error) { func (cs *charsetISO88591er) Read(p []byte) (int, error) { // Use ReadByte method. - return 0, errors.New("Use ReadByte()") + return 0, errors.New("use ReadByte()") } func isCharsetISO88591(charset string) bool { diff --git a/pkg/rss/rss.go b/pkg/rss/rss.go index 01ab0e4..23421af 100644 --- a/pkg/rss/rss.go +++ b/pkg/rss/rss.go @@ -303,7 +303,7 @@ type Enclosure struct { // Get uses http.Get to fetch an enclosure. func (e *Enclosure) Get() (io.ReadCloser, error) { if e == nil || e.URL == "" { - return nil, errors.New("No enclosure") + return nil, errors.New("no enclosure") } res, err := http.Get(e.URL) @@ -325,7 +325,7 @@ type Image struct { // Get uses http.Get to fetch an image. func (i *Image) Get() (io.ReadCloser, error) { if i == nil || i.URL == "" { - return nil, errors.New("No image") + return nil, errors.New("no image") } res, err := http.Get(i.URL)