some improvements
This commit is contained in:
parent
3c5be25cb3
commit
58a0dc36d5
25 changed files with 233 additions and 105 deletions
|
|
@ -69,13 +69,14 @@ type webData struct {
|
|||
|
||||
NotFound string
|
||||
|
||||
User string
|
||||
Token string
|
||||
Msg string
|
||||
Search string
|
||||
User string
|
||||
Token string
|
||||
Msg string
|
||||
Query string
|
||||
|
||||
Path string
|
||||
Paths core.Paths
|
||||
Tags []string
|
||||
Data interface{}
|
||||
}
|
||||
|
||||
|
|
@ -209,6 +210,10 @@ func (c *Context) Form(name string) string {
|
|||
return c.Request.PostFormValue(name)
|
||||
}
|
||||
|
||||
func (c *Context) GetForm(name string) string {
|
||||
return c.Request.FormValue(name)
|
||||
}
|
||||
|
||||
func (c *Context) Var(name string) (ret string) {
|
||||
ret, _ = mux.Vars(c.Request)[name]
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue