MCPcopy Create free account
hub / github.com/devfeel/dotweb / handlerName

Function handlerName

router.go:454–460  ·  view source on GitHub ↗
(h HttpHandle)

Source from the content-addressed store, hash-verified

452}
453
454func handlerName(h HttpHandle) string {
455 t := reflect.ValueOf(h).Type()
456 if t.Kind() == reflect.Func {
457 return runtime.FuncForPC(reflect.ValueOf(h).Pointer()).Name()
458 }
459 return t.String()
460}
461
462// Handle registers a new request handle with the given path and method.
463//

Callers 1

RegisterRouteMethod · 0.85

Calls 2

StringMethod · 0.80
NameMethod · 0.65

Tested by

no test coverage detected