Cosmetic changes
This commit is contained in:
parent
4797530476
commit
195ea88a28
@ -203,9 +203,8 @@ func (c *Context) PostForm(key string) (va string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Shortcut for c.Params.ByName(key) */
|
/** Shortcut for c.Params.ByName(key) */
|
||||||
func (c *Context) Param(key string) (va string) {
|
func (c *Context) Param(key string) string {
|
||||||
va, _ = c.Params.Get(key)
|
return c.Params.ByName(key)
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Context) DefaultPostForm(key, defaultValue string) string {
|
func (c *Context) DefaultPostForm(key, defaultValue string) string {
|
||||||
@ -434,7 +433,7 @@ func (c *Context) SetAccepted(formats ...string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/************************************/
|
/************************************/
|
||||||
/******** CONTENT NEGOTIATION *******/
|
/***** GOLANG.ORG/X/NET/CONTEXT *****/
|
||||||
/************************************/
|
/************************************/
|
||||||
|
|
||||||
func (c *Context) Deadline() (deadline time.Time, ok bool) {
|
func (c *Context) Deadline() (deadline time.Time, ok bool) {
|
||||||
|
Loading…
Reference in New Issue
Block a user