atom

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Content

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

Content is the body of an Entry.

type Entry

type Entry struct {
	Title   string  `xml:"title"`
	ID      string  `xml:"id"`
	Updated string  `xml:"updated"`
	Content Content `xml:"content"`
}

Entry is an item within a Feed.

type Feed

type Feed struct {
	XMLName xml.Name `xml:"feed"`
	Xmlns   string   `xml:"xmlns,attr"`
	ID      string   `xml:"id"`
	Title   string   `xml:"title"`
	Updated string   `xml:"updated"`
	Author  Person   `xml:"author"`
	Link    Link     `xml:"link"`
	Entries []Entry  `xml:"entry"`
}

Feed represents an Atom feed.

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

Link represents a hyperlink associated with a Feed.

type Person

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

Person represents the author of a Feed.

Jump to

Keyboard shortcuts

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