v0.0.281 typo fix
Some checks failed
Build Docker and Deploy / Run goext test-suite (push) Failing after 50s

This commit is contained in:
Timo Vetter 2023-10-09 09:04:07 +02:00
parent c3318cc1de
commit 0b85fa5af9
2 changed files with 4 additions and 4 deletions

View File

@ -61,7 +61,7 @@ func (w *GinRoutesWrapper) Use(middleware ...gin.HandlerFunc) *GinRoutesWrapper
func (w *GinRoutesWrapper) WithJSONFilter(filter string) *GinRoutesWrapper { func (w *GinRoutesWrapper) WithJSONFilter(filter string) *GinRoutesWrapper {
defHandler := langext.ArrCopy(w.defaultHandler) defHandler := langext.ArrCopy(w.defaultHandler)
defHandler = append(defHandler, func(g *gin.Context) { defHandler = append(defHandler, func(g *gin.Context) {
g.Set("ginext.jsonfilter", filter) g.Set("goext.jsonfilter", filter)
}) })
return &GinRoutesWrapper{wrapper: w.wrapper, routes: w.routes, defaultHandler: defHandler} return &GinRoutesWrapper{wrapper: w.wrapper, routes: w.routes, defaultHandler: defHandler}
} }
@ -119,7 +119,7 @@ func (w *GinRouteBuilder) Use(middleware ...gin.HandlerFunc) *GinRouteBuilder {
func (w *GinRouteBuilder) WithJSONFilter(filter string) *GinRouteBuilder { func (w *GinRouteBuilder) WithJSONFilter(filter string) *GinRouteBuilder {
w.handlers = append(w.handlers, func(g *gin.Context) { w.handlers = append(w.handlers, func(g *gin.Context) {
g.Set("ginext.jsonfilter", filter) g.Set("goext.jsonfilter", filter)
}) })
return w return w
} }

View File

@ -1,5 +1,5 @@
package goext package goext
const GoextVersion = "0.0.280" const GoextVersion = "0.0.281"
const GoextVersionTimestamp = "2023-10-09T09:02:37+0200" const GoextVersionTimestamp = "2023-10-09T09:04:07+0200"