Documentation
¶
Overview ¶
Package stack provides some utilities for dealing with the call stack.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Caller ¶
Caller formats the caller at `depth` like "filename:lineno". Returns "???:1" on error.
func CallerAbove ¶
CallerAbove finds the depth first calling function, above depth, without the given prefix (package name, etc). If it can't find such a caller, it returns the depth of the stack or the depth of first error.
func ClearTestCaller ¶
func ClearTestCaller() string
ClearTestCaller returns a string that, when printed to a terminal, clears line information typically output by t.Log().
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.