MCPcopy Index your code
hub / github.com/labstack/echo / HandlerName

Function HandlerName

route.go:99–105  ·  view source on GitHub ↗

HandlerName returns string name for given function.

(h HandlerFunc)

Source from the content-addressed store, hash-verified

97
98// HandlerName returns string name for given function.
99func HandlerName(h HandlerFunc) string {
100 t := reflect.ValueOf(h).Type()
101 if t.Kind() == reflect.Func {
102 return runtime.FuncForPC(reflect.ValueOf(h).Pointer()).Name()
103 }
104 return t.String()
105}
106
107// Clone creates copy of Routes
108func (r Routes) Clone() Routes {

Callers 3

TestHandlerNameFunction · 0.85

Calls 1

StringMethod · 0.45

Tested by 3

TestHandlerNameFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…