atom

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Title   string `xml:"title"`
	ID      string `xml:"id"`
	Updated string `xml:"updated"`
	Author  Person `xml:"author"`
	Link    Link   `xml:"link"`
	Summary Text   `xml:"content"`
}

Entry ... TODO

type Feed

type Feed struct {
	XMLName xml.Name `xml:"http://www.w3.org/2005/Atom feed"`
	Title   string   `xml:"title"`
	ID      string   `xml:"id"`
	Link    Link     `xml:"link"`
	Updated string   `xml:"updated"`
	Entries []Entry  `xml:"entry"`
}

Feed ... TODO

func LoadFeed

func LoadFeed(r io.Reader) (Feed, error)

LoadFeed ... TODO

func (Feed) LatestEntry

func (f Feed) LatestEntry() Entry

LatestEntry ... TODO

type Link struct {
	Rel  string `xml:"rel,attr"`
	Href string `xml:"href,attr"`
}

Link ... TODO

type Person

type Person struct {
	Name string `xml:"name"`
}

Person ... TODO

type Text

type Text struct {
	Type string `xml:"type,attr"`
	Body string `xml:"chardata"`
}

Text ... TODO

Jump to

Keyboard shortcuts

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