Home | History | Annotate | Download | only in wiki

Lines Matching refs:title

15 	Title string
20 filename := p.Title + ".txt"
24 func loadPage(title string) (*Page, error) {
25 filename := title + ".txt"
30 return &Page{Title: title, Body: body}, nil
33 func viewHandler(w http.ResponseWriter, r *http.Request, title string) {
34 p, err := loadPage(title)
36 http.Redirect(w, r, "/edit/"+title, http.StatusFound)
42 func editHandler(w http.ResponseWriter, r *http.Request, title string) {
43 p, err := loadPage(title)
45 p = &Page{Title: title}
50 func saveHandler(w http.ResponseWriter, r *http.Request, title string) {
52 p := &Page{Title: title, Body: []byte(body)}
58 http.Redirect(w, r, "/view/"+title, http.StatusFound)