Documentation ¶
Index ¶
- func HandleCreate(w http.ResponseWriter, r *http.Request) error
- func HandleCreateShow(w http.ResponseWriter, r *http.Request) error
- func HandleDestroy(w http.ResponseWriter, r *http.Request) error
- func HandleIndex(w http.ResponseWriter, r *http.Request) error
- func HandleShow(w http.ResponseWriter, r *http.Request) error
- func HandleShowBlog(w http.ResponseWriter, r *http.Request) error
- func HandleUpdate(w http.ResponseWriter, r *http.Request) error
- func HandleUpdateShow(w http.ResponseWriter, r *http.Request) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleCreate ¶
func HandleCreate(w http.ResponseWriter, r *http.Request) error
HandleCreate handles the POST of the create form for posts
func HandleCreateShow ¶
func HandleCreateShow(w http.ResponseWriter, r *http.Request) error
HandleCreateShow serves the create form via GET for posts.
func HandleDestroy ¶
func HandleDestroy(w http.ResponseWriter, r *http.Request) error
HandleDestroy responds to /posts/n/destroy by deleting the post.
func HandleIndex ¶
func HandleIndex(w http.ResponseWriter, r *http.Request) error
HandleIndex displays a list of posts.
func HandleShow ¶
func HandleShow(w http.ResponseWriter, r *http.Request) error
HandleShow displays a single post.
func HandleShowBlog ¶
func HandleShowBlog(w http.ResponseWriter, r *http.Request) error
HandleShowBlog responds to GET /blog
func HandleUpdate ¶
func HandleUpdate(w http.ResponseWriter, r *http.Request) error
HandleUpdate handles the POST of the form to update a post
func HandleUpdateShow ¶
func HandleUpdateShow(w http.ResponseWriter, r *http.Request) error
HandleUpdateShow renders the form to update a post.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.