MCPcopy Index your code
hub / github.com/pkg/errors / file

Method file

stack.go:23–30  ·  view source on GitHub ↗

file returns the full path to the file that contains the function for this Frame's pc.

()

Source from the content-addressed store, hash-verified

21// file returns the full path to the file that contains the
22// function for this Frame's pc.
23func (f Frame) file() string {
24 fn := runtime.FuncForPC(f.pc())
25 if fn == nil {
26 return "unknown"
27 }
28 file, _ := fn.FileLine(f.pc())
29 return file
30}
31
32// line returns the line number of source code of the
33// function for this Frame's pc.

Callers 2

FormatMethod · 0.95
MarshalTextMethod · 0.95

Calls 1

pcMethod · 0.95

Tested by

no test coverage detected