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"