From 1c143921e68f0612383d27b9fe1ecfc8be252b2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Thu, 7 Dec 2023 14:42:25 +0100 Subject: [PATCH] v0.0.340 --- ginext/engine.go | 7 ++++--- goextVersion.go | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ginext/engine.go b/ginext/engine.go index 8d29b30..6f141e8 100644 --- a/ginext/engine.go +++ b/ginext/engine.go @@ -129,7 +129,7 @@ func (w *GinWrapper) DebugPrintRoutes() { spec.Method, spec.URL, strings.Join(langext.ArrMap(spec.Middlewares, w.cleanMiddlewareName), " -> "), - spec.Handler, + w.cleanMiddlewareName(spec.Handler), } lines = append(lines, line) @@ -140,9 +140,10 @@ func (w *GinWrapper) DebugPrintRoutes() { pad[3] = mathext.Max(pad[3], len(line[3])) } + fmt.Printf("Gin-Routes:") for _, line := range lines { - fmt.Printf("Gin-Route: %s %s --> %s --> %s\n", + fmt.Printf(" %s %s --> %s --> %s\n", langext.StrPadRight("["+line[0]+"]", " ", pad[0]+2), langext.StrPadRight(line[1], " ", pad[1]), langext.StrPadRight(line[2], " ", pad[2]), @@ -165,7 +166,7 @@ func (w *GinWrapper) cleanMiddlewareName(fname string) string { fname = "[BodyBuffer]" } - skipPrefixes := []string{"api.(*Handler).", "api."} + skipPrefixes := []string{"api.(*Handler).", "api.", "ginext.", "handler.", "admin-app.", "employee-app.", "employer-app."} for _, pfx := range skipPrefixes { if strings.HasPrefix(fname, pfx) { fname = fname[len(pfx):] diff --git a/goextVersion.go b/goextVersion.go index 6787cd5..2bebebc 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -1,5 +1,5 @@ package goext -const GoextVersion = "0.0.339" +const GoextVersion = "0.0.340" -const GoextVersionTimestamp = "2023-12-07T10:54:36+0100" +const GoextVersionTimestamp = "2023-12-07T14:42:25+0100"