name returns the name of this function, if known.
()
| 99 | |
| 100 | // name returns the name of this function, if known. |
| 101 | func (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 | // |
no test coverage detected