v0.0.340
Some checks failed
Build Docker and Deploy / Run goext test-suite (push) Has been cancelled
Some checks failed
Build Docker and Deploy / Run goext test-suite (push) Has been cancelled
This commit is contained in:
parent
68e63a9cf6
commit
1c143921e6
@ -129,7 +129,7 @@ func (w *GinWrapper) DebugPrintRoutes() {
|
|||||||
spec.Method,
|
spec.Method,
|
||||||
spec.URL,
|
spec.URL,
|
||||||
strings.Join(langext.ArrMap(spec.Middlewares, w.cleanMiddlewareName), " -> "),
|
strings.Join(langext.ArrMap(spec.Middlewares, w.cleanMiddlewareName), " -> "),
|
||||||
spec.Handler,
|
w.cleanMiddlewareName(spec.Handler),
|
||||||
}
|
}
|
||||||
|
|
||||||
lines = append(lines, line)
|
lines = append(lines, line)
|
||||||
@ -140,9 +140,10 @@ func (w *GinWrapper) DebugPrintRoutes() {
|
|||||||
pad[3] = mathext.Max(pad[3], len(line[3]))
|
pad[3] = mathext.Max(pad[3], len(line[3]))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fmt.Printf("Gin-Routes:")
|
||||||
for _, line := range lines {
|
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[0]+"]", " ", pad[0]+2),
|
||||||
langext.StrPadRight(line[1], " ", pad[1]),
|
langext.StrPadRight(line[1], " ", pad[1]),
|
||||||
langext.StrPadRight(line[2], " ", pad[2]),
|
langext.StrPadRight(line[2], " ", pad[2]),
|
||||||
@ -165,7 +166,7 @@ func (w *GinWrapper) cleanMiddlewareName(fname string) string {
|
|||||||
fname = "[BodyBuffer]"
|
fname = "[BodyBuffer]"
|
||||||
}
|
}
|
||||||
|
|
||||||
skipPrefixes := []string{"api.(*Handler).", "api."}
|
skipPrefixes := []string{"api.(*Handler).", "api.", "ginext.", "handler.", "admin-app.", "employee-app.", "employer-app."}
|
||||||
for _, pfx := range skipPrefixes {
|
for _, pfx := range skipPrefixes {
|
||||||
if strings.HasPrefix(fname, pfx) {
|
if strings.HasPrefix(fname, pfx) {
|
||||||
fname = fname[len(pfx):]
|
fname = fname[len(pfx):]
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
package goext
|
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"
|
||||||
|
Loading…
Reference in New Issue
Block a user