feed

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package feed renders an Atom feed of the latest links in a collection. Subscribing to your own collection from any reader is a surprisingly useful way to revisit saved items — the cost is one route + ~30 lines.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder owns the storage handle.

func New

func New(store *storage.Store) *Builder

func (*Builder) Atom

func (b *Builder) Atom(ctx context.Context, slug, siteURL string, limit int) (string, error)

Atom returns the serialised <feed> XML for a collection. limit caps the number of entries (default 50). siteURL is the public base used for permalinks; pass an empty string when running purely on localhost.

Jump to

Keyboard shortcuts

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