parser

package
v2.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FormatRDF     = "rdf"
	FormatRSS     = "rss"
	FormatAtom    = "atom"
	FormatJSON    = "json"
	FormatUnknown = "unknown"
)

List of feed formats.

Variables

View Source
var ErrFeedFormatNotDetected = errors.New("parser: unable to detect feed format")

Functions

func DetectFeedFormat

func DetectFeedFormat(r io.ReadSeeker) (string, string)

DetectFeedFormat tries to guess the feed format from input data.

func ParseFeed

func ParseFeed(baseURL string, r io.ReadSeeker) (*model.Feed, error)

ParseFeed analyzes the input data and returns a normalized feed object.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL