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 {
|
func (engine *Engine) allocateContext(maxParams uint16) *Context {
|
||||||
v := make(Params, 0, maxParams)
|
v := make(Params, 0, maxParams)
|
||||||
return &Context{engine: engine, params: &v}
|
return &Context{engine: engine, Params: &v}
|
||||||
}
|
}
|
||||||
|
|
||||||
func New(opts ...OptionFunc) *Engine {
|
func New(opts ...OptionFunc) *Engine {
|
||||||
|
@ -72,7 +72,7 @@ func Default(opts ...OptionFunc) *Engine {
|
||||||
type Context struct {
|
type Context struct {
|
||||||
writermem responseWriter
|
writermem responseWriter
|
||||||
engine *Engine
|
engine *Engine
|
||||||
params *Params
|
Params *Params
|
||||||
Request *http.Request
|
Request *http.Request
|
||||||
handlers HandlersChain
|
handlers HandlersChain
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue