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

Method parseLink

rss/parser.go:467–477  ·  view source on GitHub ↗
(p *xpp.XMLPullParser)

Source from the content-addressed store, hash-verified

465}
466
467func (rp *Parser) parseLink(p *xpp.XMLPullParser) (url string, err error) {
468 href := p.Attribute("href")
469 url, err = shared.ParseText(p)
470 if err != nil {
471 return
472 }
473 if url == "" && href != "" {
474 url = href
475 }
476 return url, err
477}
478
479func (rp *Parser) parseSource(p *xpp.XMLPullParser) (source *Source, err error) {
480 if err = p.Expect(xpp.StartTag, "source"); err != nil {

Callers 2

parseChannelMethod · 0.95
parseItemMethod · 0.95

Calls 1

ParseTextFunction · 0.92

Tested by

no test coverage detected