atomrss

package
v0.5.35 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AtomEntry

type AtomEntry struct {
	Title     string               `xml:"title"`
	Link      AtomLink             `xml:"link"`
	Summary   string               `xml:"summary"`
	Content   string               `xml:"content"`
	Published commons.NullableTime `xml:"published"`
	Updated   commons.NullableTime `xml:"updated"`
	ID        string               `xml:"id"`
}

func (*AtomEntry) Cleanup

func (e *AtomEntry) Cleanup()

type AtomFeed

type AtomFeed struct {
	XMLName xml.Name             `xml:"http://www.w3.org/2005/Atom feed"`
	Title   string               `xml:"title"`
	Link    AtomLink             `xml:"link"`
	Updated commons.NullableTime `xml:"updated"`
	Entries []AtomEntry          `xml:"entry"`
}
type AtomLink struct {
	Href string `xml:"href,attr"`
}

type AtomParser

type AtomParser struct {
	OnURLFound func(*AtomEntry)
}

func (*AtomParser) Load

func (p *AtomParser) Load(feedURL string) error

Jump to

Keyboard shortcuts

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