renderer

package
v0.0.0-...-c2e572c Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteFeed

func WriteFeed(w http.ResponseWriter, data *feeds.Feed, format Format) error

Types

type Feed

type Feed struct {
	Format Format
	Data   *feeds.Feed
}

func (Feed) Render

func (r Feed) Render(w http.ResponseWriter) error

func (Feed) WriteContentType

func (r Feed) WriteContentType(w http.ResponseWriter)

type Format

type Format string
const (
	AtomFormat Format = "atom"
	RSSFormat  Format = "rss"
)

func FormatFromString

func FormatFromString(format string) Format

Jump to

Keyboard shortcuts

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