Documentation ¶
Index ¶
- Variables
- func CreatePage(p *Page) (int, error)
- func CreatePost(p *Post) (int, error)
- func HandleNew(w http.ResponseWriter, r *http.Request)
- func ServeIndex(w http.ResponseWriter, r *http.Request)
- func ServePage(w http.ResponseWriter, r *http.Request)
- func ServePost(w http.ResponseWriter, r *http.Request)
- type Comment
- type Page
- type PgStore
- type Post
Constants ¶
This section is empty.
Variables ¶
View Source
var Tmpl = template.Must(template.ParseGlob("templates/*"))
Tmpl is a reference to all of our templates
Functions ¶
func HandleNew ¶
func HandleNew(w http.ResponseWriter, r *http.Request)
HandleNew hadnles preview logic
func ServeIndex ¶
func ServeIndex(w http.ResponseWriter, r *http.Request)
ServeIndex serves the index page.
Types ¶
Click to show internal directories.
Click to hide internal directories.