MCPcopy
hub / github.com/gin-gonic/gin / nameOfFunction

Function nameOfFunction

utils.go:131–133  ·  view source on GitHub ↗
(f any)

Source from the content-addressed store, hash-verified

129}
130
131func nameOfFunction(f any) string {
132 return runtime.FuncForPC(reflect.ValueOf(f).Pointer()).Name()
133}
134
135func joinPaths(absolutePath, relativePath string) string {
136 if relativePath == "" {

Callers 5

TestFunctionNameFunction · 0.85
debugPrintRouteFunction · 0.85
iterateFunction · 0.85
HandlerNameMethod · 0.85
HandlerNamesMethod · 0.85

Calls 1

NameMethod · 0.65

Tested by 1

TestFunctionNameFunction · 0.68