Discover Packages
github.com/mmcloughlin/avo
internal
stack
package
Version:
v0.6.0
Opens a new window with list of versions in this module.
Published: Jan 7, 2024
License: BSD-3-Clause
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package stack provides helpers for querying the callstack.
ExternalCaller returns the first frame outside the callers package.
Frames returns at most max callstack Frames, starting with its caller and
skipping skip Frames.
Main returns the main() function Frame.
Match returns the first stack frame for which the predicate function returns
true. Returns nil if no match is found. Starts matching after skip frames,
starting with its caller.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.