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

Method HandlerFileLine

context/context.go:654–656  ·  view source on GitHub ↗

HandlerFileLine returns the current running handler's function source file and line information. Useful mostly when debugging.

()

Source from the content-addressed store, hash-verified

652// HandlerFileLine returns the current running handler's function source file and line information.
653// Useful mostly when debugging.
654func (ctx *Context) HandlerFileLine() (file string, line int) {
655 return HandlerFileLine(ctx.handlers[ctx.currentHandlerIndex])
656}
657
658// RouteName returns the route name that this handler is running on.
659// Note that it may return empty on not found handlers.

Callers 1

mainFunction · 0.80

Calls 1

HandlerFileLineFunction · 0.85

Tested by

no test coverage detected