rss

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSiteFeed

func GenerateSiteFeed(docs []*markdown.Document, baseURL, siteName string) ([]byte, error)

GenerateSiteFeed generates an RSS feed for all blog posts across all authors

func GenerateUserFeed

func GenerateUserFeed(docs []*markdown.Document, userName, baseURL, siteName string) ([]byte, error)

GenerateUserFeed generates an RSS feed for a user's blog posts

Types

type Channel

type Channel struct {
	Title         string `xml:"title"`
	Link          string `xml:"link"`
	Description   string `xml:"description"`
	Language      string `xml:"language,omitempty"`
	LastBuildDate string `xml:"lastBuildDate,omitempty"`
	Items         []Item `xml:"item"`
}

Channel represents an RSS channel

type Item

type Item struct {
	Title       string `xml:"title"`
	Link        string `xml:"link"`
	Description string `xml:"description,omitempty"`
	PubDate     string `xml:"pubDate,omitempty"`
	GUID        string `xml:"guid"`
}

Item represents an RSS item

type RSS

type RSS struct {
	XMLName xml.Name `xml:"rss"`
	Version string   `xml:"version,attr"`
	Channel *Channel `xml:"channel"`
}

RSS represents an RSS 2.0 feed

Jump to

Keyboard shortcuts

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