Lines Matching refs:title
14 Title string
19 filename := p.Title + ".txt"
23 func loadPage(title string) (*Page, error) {
24 filename := title + ".txt"
29 return &Page{Title: title, Body: body}, nil
33 title := r.URL.Path[len("/edit/"):]
34 p, err := loadPage(title)
36 p = &Page{Title: title}
42 title := r.URL.Path[len("/view/"):]
43 p, _ := loadPage(title)
48 title := r.URL.Path[len("/save/"):]
50 p := &Page{Title: title, Body: []byte(body)}
52 http.Redirect(w, r, "/view/"+title, http.StatusFound)