fix to mirror gin syntax

This commit is contained in:
Jeff Carr 2025-03-19 07:53:00 -05:00
parent ef371cda38
commit ea5481cc6d
2 changed files with 7 additions and 2 deletions

4
gin.go
View File

@ -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

5
go.mod Normal file
View File

@ -0,0 +1,5 @@
module go.wit.com/lib/http/ginpb
go 1.22
toolchain go1.24.1