From edeae23bf19f10ddd5bd59ea467f34c56cc584a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Mon, 24 Jul 2023 18:47:48 +0200 Subject: [PATCH] v0.0.205 --- ginext/routes.go | 7 ++++++- goextVersion.go | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ginext/routes.go b/ginext/routes.go index c3df57b..444ddff 100644 --- a/ginext/routes.go +++ b/ginext/routes.go @@ -132,8 +132,13 @@ func nameOfFunction(f any) string { fname = split[len(split)-1] + // https://stackoverflow.com/a/32925345/1761622 + if strings.HasSuffix(fname, "-fm") { + fname = fname[:len(fname)-len("-fm")] + } + if strings.HasSuffix(fname, ".func1") { - fname = fname[len(fname)-len(".func1"):] + fname = fname[:len(fname)-len(".func1")] } return fname diff --git a/goextVersion.go b/goextVersion.go index 7645a09..346b2af 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -1,5 +1,5 @@ package goext -const GoextVersion = "0.0.204" +const GoextVersion = "0.0.205" -const GoextVersionTimestamp = "2023-07-24T18:42:33+0200" +const GoextVersionTimestamp = "2023-07-24T18:47:48+0200"