Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFrameIter ¶
NewFrameIter returns an iterator over the current goroutine's call stack.
The returned iterator conforms to the standard library's iter.Seq type and can be used with a range loop:
iter := NewFrameIter(16, 0)
for frame := range iter {
// use frame
}
initialPCBufSize controls the initial size of the []uintptr buffer passed to runtime.Callers. If the buffer is too small to hold the complete call stack, the implementation will grow it until the full stack has been captured.
The skip parameter has the same meaning as the skip parameter passed directly to runtime.Callers.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.