MCPcopy Create free account
hub / github.com/kataras/iris / traceHandlerFile

Function traceHandlerFile

core/router/route.go:444–453  ·  view source on GitHub ↗
(title, name, line string, number int)

Source from the content-addressed store, hash-verified

442}
443
444func traceHandlerFile(title, name, line string, number int) string {
445 file := fmt.Sprintf("(%s:%d)", filepath.ToSlash(line), number)
446
447 if context.IgnoreHandlerName(name) {
448 return ""
449 }
450
451 space := strings.Repeat(" ", len(title)+1)
452 return fmt.Sprintf("\n%s • %s %s", space, name, file)
453}
454
455var methodColors = map[string]int{
456 http.MethodGet: pio.Green,

Callers 1

TraceMethod · 0.85

Calls 1

IgnoreHandlerNameFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…