MCPcopy
hub / github.com/mmcdole/gofeed / firstEntry

Method firstEntry

translator.go:517–527  ·  view source on GitHub ↗
(entries []string)

Source from the content-addressed store, hash-verified

515}
516
517func (t *DefaultRSSTranslator) firstEntry(entries []string) (value string) {
518 if entries == nil {
519 return
520 }
521
522 if len(entries) == 0 {
523 return
524 }
525
526 return entries[0]
527}
528
529// DefaultAtomTranslator converts an atom.Feed struct
530// into the generic Feed struct.

Callers 13

translateFeedTitleMethod · 0.95
translateFeedUpdatedMethod · 0.95
translateFeedAuthorMethod · 0.95
translateFeedLanguageMethod · 0.95
translateItemTitleMethod · 0.95
translateItemUpdatedMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected