Better documentation

This commit is contained in:
Manu Mtz-Almeida
2015-05-29 21:03:41 +02:00
parent 66e9feb622
commit 48633f7001
5 changed files with 41 additions and 4 deletions

View File

@ -171,19 +171,19 @@ func (c *Context) MustGet(key string) interface{} {
/************ INPUT DATA ************/
/************************************/
/** Shortcut for c.Request.URL.Query().Get(key) */
// Shortcut for c.Request.URL.Query().Get(key)
func (c *Context) Query(key string) (va string) {
va, _ = c.query(key)
return
}
/** Shortcut for c.Request.PostFormValue(key) */
// Shortcut for c.Request.PostFormValue(key)
func (c *Context) PostForm(key string) (va string) {
va, _ = c.postForm(key)
return
}
/** Shortcut for c.Params.ByName(key) */
// Shortcut for c.Params.ByName(key)
func (c *Context) Param(key string) string {
return c.Params.ByName(key)
}