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{})
| 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. |
| 191 | func 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. |
no test coverage detected
searching dependent graphs…