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

Method name

stack.go:44–50  ·  view source on GitHub ↗

name returns the name of this function, if known.

()

Source from the content-addressed store, hash-verified

42
43// name returns the name of this function, if known.
44func (f Frame) name() string {
45 fn := runtime.FuncForPC(f.pc())
46 if fn == nil {
47 return "unknown"
48 }
49 return fn.Name()
50}
51
52// Format formats the frame according to the fmt.Formatter interface.
53//

Callers 2

FormatMethod · 0.95
MarshalTextMethod · 0.95

Calls 1

pcMethod · 0.95

Tested by

no test coverage detected