atomparser

package module
v0.0.0-...-f862cce Latest Latest
Warning

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

Go to latest
Published: May 7, 2019 License: Apache-2.0 Imports: 6 Imported by: 1

README

Atom Feed Parser

This package allows a user to parse atom feeds either from a string of xml or directly from a URL.

There is also a CompareItems function that will compare two Atom Feeds and return any items that do not exist in both.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareItems

func CompareItems(feedOne *atom.Feed, feedTwo *atom.Feed) []*atom.Entry

CompareItems - This function will used to compare 2 atom feed xml item objects and will return a list of differing items

func CompareItemsBetweenOldAndNew

func CompareItemsBetweenOldAndNew(feedOld *atom.Feed, feedNew *atom.Feed) []*atom.Entry

CompareItemsBetweenOldAndNew - This function will used to compare 2 atom xml event objects and will return a list of items that are specifically in the newer feed but not in the older feed

func IsValidFeed

func IsValidFeed(url string) bool

IsValidFeed checks feed to see if it is an Atom feed

func ParseString

func ParseString(s string) (*atom.Feed, error)

ParseString will be used to parse strings and will return the Atom object

func ParseURL

func ParseURL(url string) (*atom.Feed, string, error)

ParseURL will be used to parse a string returned from a url and will return the Rss object

Types

This section is empty.

Jump to

Keyboard shortcuts

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