TracePC returns the program counter for the location in the frame that the error originated with. The returned PC is intended to be used with runtime.CallersFrames or runtime.FuncForPC to aid in generating the error return trace
()
| 136 | // runtime.CallersFrames or runtime.FuncForPC |
| 137 | // to aid in generating the error return trace |
| 138 | func (e *errTrace) TracePC() uintptr { |
| 139 | return e.pc |
| 140 | } |
| 141 | |
| 142 | // compile time tracePCprovider interface check |
| 143 | var _ interface{ TracePC() uintptr } = &errTrace{} |