fix to mirror gin syntax
This commit is contained in:
parent
ef371cda38
commit
ea5481cc6d
4
gin.go
4
gin.go
|
@ -31,7 +31,7 @@ type Params []Param
|
|||
|
||||
func (engine *Engine) allocateContext(maxParams uint16) *Context {
|
||||
v := make(Params, 0, maxParams)
|
||||
return &Context{engine: engine, params: &v}
|
||||
return &Context{engine: engine, Params: &v}
|
||||
}
|
||||
|
||||
func New(opts ...OptionFunc) *Engine {
|
||||
|
@ -72,7 +72,7 @@ func Default(opts ...OptionFunc) *Engine {
|
|||
type Context struct {
|
||||
writermem responseWriter
|
||||
engine *Engine
|
||||
params *Params
|
||||
Params *Params
|
||||
Request *http.Request
|
||||
handlers HandlersChain
|
||||
|
||||
|
|
Loading…
Reference in New Issue