parser

package
v1.0.46 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

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

List of feed formats.

Variables

This section is empty.

Functions

func DetectFeedFormat

func DetectFeedFormat(data string) string

DetectFeedFormat tries to guess the feed format from input data.

func ParseFeed

func ParseFeed(baseURL, data string) (*model.Feed, *errors.LocalizedError)

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