utils

package
v0.0.0-...-610aec7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTitle

func GetTitle(w http.ResponseWriter, r *http.Request) (string, error)

func RenderTemplate

func RenderTemplate(w http.ResponseWriter, tmpl string, p *Page)

Types

type Page

type Page struct {
	Title string
	Body  []byte
}

func LoadPage

func LoadPage(title string) (*Page, error)

func (*Page) Save

func (p *Page) Save() error

Jump to

Keyboard shortcuts

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