blogrenderer

package
v0.0.0-...-a95355e Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Post

type Post struct {
	Title       string
	Body        string
	Description string
	Tags        []string
}

func (*Post) SanitisedTitle

func (p *Post) SanitisedTitle() string

type PostRenderer

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

func NewPostRenderer

func NewPostRenderer() (*PostRenderer, error)

func (*PostRenderer) Render

func (r *PostRenderer) Render(w io.Writer, post Post) error

func (*PostRenderer) RenderIndex

func (r *PostRenderer) RenderIndex(w io.Writer, posts []Post) error

Jump to

Keyboard shortcuts

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