app

package
v0.0.0-...-3928e1a Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: BSD-4-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupHandler

func SetupHandler() *mux.Router

SetupHandler prepares the route handler

Types

type Page

type Page struct {
	Title string
}

Page contains generic information for all pages

type PostIndex

type PostIndex struct {
	Page Page
	Post database.Post
}

PostIndex is used for the individual post pages

type PostsIndex

type PostsIndex struct {
	Page  Page
	Posts []database.Post
}

PostsIndex is used for the index page

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳