riviera: hawx.me/code/riviera/feed/rdf Index | Files

package rdf

import "hawx.me/code/riviera/feed/rdf"

Package rdf provides a parser for RDF Site Summary (RSS) 1.0.

See http://web.resource.org/rss/1.0/spec for the specification.


Package Files


type Parser Uses

type Parser struct{}

Parser is capable of reading RDF Site Summary (RSS) 1.0 feeds.

It also supports three modules:

- Dublin Core: http://web.resource.org/rss/1.0/modules/dc/
- Syndication: http://web.resource.org/rss/1.0/modules/syndication/
- Content: http://web.resource.org/rss/1.0/modules/content/

func (Parser) CanRead Uses

func (Parser) CanRead(r io.Reader, charset func(charset string, input io.Reader) (io.Reader, error)) bool

CanRead returns true if the reader provides data that is XML and contains the expected namespace for an RDF Site Summary feed.

func (Parser) Read Uses

func (Parser) Read(r io.Reader, charset func(string, io.Reader) (io.Reader, error)) (foundChannels []*common.Channel, err error)

Package rdf imports 4 packages (graph) and is imported by 2 packages. Updated 2019-04-19. Refresh now. Tools for package owners.