MCPcopy Index your code
hub / github.com/go-errors/errors / Func

Method Func

stackframe.go:44–49  ·  view source on GitHub ↗

Func returns the function that contained this frame.

()

Source from the content-addressed store, hash-verified

42
43// Func returns the function that contained this frame.
44func (frame *StackFrame) Func() *runtime.Func {
45 if frame.ProgramCounter == 0 {
46 return nil
47 }
48 return runtime.FuncForPC(frame.ProgramCounter)
49}
50
51// String returns the stackframe formatted in the same way as go does
52// in runtime/debug.Stack()

Callers 2

NewStackFrameFunction · 0.80
TestParsePanicFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestParsePanicFunction · 0.64