MCPcopy Index your code
hub / github.com/bracesdev/errtrace / TracePC

Method TracePC

errtrace.go:138–140  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

136// runtime.CallersFrames or runtime.FuncForPC
137// to aid in generating the error return trace
138func (e *errTrace) TracePC() uintptr {
139 return e.pc
140}
141
142// compile time tracePCprovider interface check
143var _ interface{ TracePC() uintptr } = &errTrace{}

Callers 1

UnwrapFrameFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected