MCPcopy
hub / github.com/duke-git/lancet / name

Method name

xerror/stack.go:101–107  ·  view source on GitHub ↗

name returns the name of this function, if known.

()

Source from the content-addressed store, hash-verified

99
100// name returns the name of this function, if known.
101func (f frame) name() string {
102 fn := runtime.FuncForPC(f.pc())
103 if fn == nil {
104 return "unknown"
105 }
106 return fn.Name()
107}
108
109// Format of frame formats the frame according to the fmt.Formatter interface.
110//

Callers 3

FormatMethod · 0.95
MarshalTextMethod · 0.95
StacksMethod · 0.80

Calls 2

pcMethod · 0.95
NameMethod · 0.65

Tested by

no test coverage detected