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

Function HandlerFileLine

context/handler.go:191–194  ·  view source on GitHub ↗

HandlerFileLine returns the handler's file and line information. See `context.HandlerFileLine` to get the file, line of the current running handler in the chain.

(h interface{})

Source from the content-addressed store, hash-verified

189// HandlerFileLine returns the handler's file and line information.
190// See `context.HandlerFileLine` to get the file, line of the current running handler in the chain.
191func HandlerFileLine(h interface{}) (file string, line int) {
192 pc := valueOf(h).Pointer()
193 return runtime.FuncForPC(pc).FileLine(pc)
194}
195
196// HandlerFileLineRel same as `HandlerFileLine` but it returns the path
197// corresponding to its relative based on the package-level "WorkingDir" variable.

Callers 4

PanicRecoveryErrorFunction · 0.92
HandleDirMethod · 0.92
HandlerFileLineRelFunction · 0.85
HandlerFileLineMethod · 0.85

Calls 1

valueOfFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…