From d5cb1e48edd7b054156e7bccffc1e958f7edcc62 Mon Sep 17 00:00:00 2001 From: risqy Date: Wed, 19 Jul 2023 11:20:35 +0200 Subject: [PATCH] v0.0.178 --- ginext/routes.go | 4 ++-- goextVersion.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ginext/routes.go b/ginext/routes.go index a28377f..d925d3d 100644 --- a/ginext/routes.go +++ b/ginext/routes.go @@ -68,8 +68,8 @@ func (w *GinRoutesWrapper) Any(relativePath string) *GinRouteBuilder { return &GinRouteBuilder{routes: w, methods: anyMethods, relPath: relativePath, handlers: make([]gin.HandlerFunc, 0)} } -func (w *GinRouteBuilder) Use(middleware gin.HandlerFunc) *GinRouteBuilder { - w.handlers = append(w.handlers, middleware) +func (w *GinRouteBuilder) Use(middleware ...gin.HandlerFunc) *GinRouteBuilder { + w.handlers = append(w.handlers, middleware...) return w } diff --git a/goextVersion.go b/goextVersion.go index 4115b95..e6e4fe6 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -1,5 +1,5 @@ package goext -const GoextVersion = "0.0.177" +const GoextVersion = "0.0.178" -const GoextVersionTimestamp = "2023-07-18T16:08:24+0200" +const GoextVersionTimestamp = "2023-07-19T11:20:35+0200"