blogrenderer

package
v0.0.0-...-aaba0a9 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2022 License: MIT Imports: 6 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
	Description string
	Body        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, p 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