summaryrefslogtreecommitdiff
path: root/gin.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-03-19 07:53:00 -0500
committerJeff Carr <[email protected]>2025-03-19 07:53:00 -0500
commitea5481cc6dda66634492ceb0b0b188affd907af4 (patch)
tree83dba4e56c05f5ac82cf481764647be5b757d5d9 /gin.go
parentef371cda38829dc4b836e218b25ad20204d54ec7 (diff)
fix to mirror gin syntaxHEADv0.0.2masterdevel
Diffstat (limited to 'gin.go')
-rw-r--r--gin.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/gin.go b/gin.go
index 3a41436..e050ade 100644
--- a/gin.go
+++ b/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