summaryrefslogtreecommitdiff
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
parentef371cda38829dc4b836e218b25ad20204d54ec7 (diff)
fix to mirror gin syntaxHEADv0.0.2masterdevel
-rw-r--r--gin.go4
-rw-r--r--go.mod5
2 files changed, 7 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
diff --git a/go.mod b/go.mod
new file mode 100644
index 0000000..d0a2b8a
--- /dev/null
+++ b/go.mod
@@ -0,0 +1,5 @@
+module go.wit.com/lib/http/ginpb
+
+go 1.22
+
+toolchain go1.24.1