Documentation ¶
Index ¶
- func BKDR(str []byte) uint32
- func BinVersion() (string, error)
- func BinVersionMd5() (string, error)
- func Caller(skip ...int) (function string, path string, line int, err error)
- func CallerDirectory() string
- func CallerFileLine() string
- func CallerFileLineShort() string
- func CallerFilePath() string
- func CallerFunction() string
- func CallerPackage() string
- func CallerWithFilter(filters []string, skip ...int) (function string, path string, line int, err error)
- func FuncName(f interface{}) string
- func FuncPath(f interface{}) string
- func GoroutineId() (int, error)
- func PrintStack(skip ...int)
- func SetStackFilterKey(key string)
- func Stack(skip ...int) string
- func StackWithFilter(filter string, skip ...int) string
- func StackWithFilters(filters []string, skip ...int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BinVersion ¶
BinVersion returns the version of the current running binary.
func BinVersionMd5 ¶
BinVersionMd5 returns the MD5 hash of the current running binary.
func CallerDirectory ¶
func CallerDirectory() string
CallerDirectory returns the directory of the caller.
func CallerFileLine ¶
func CallerFileLine() string
CallerFileLine returns the file path along with the line number of the caller.
func CallerFileLineShort ¶
func CallerFileLineShort() string
CallerFileLineShort returns the file name along with the line number of the caller.
func CallerFilePath ¶
func CallerFilePath() string
CallerFilePath returns the file path of the caller.
func CallerFunction ¶
func CallerFunction() string
CallerFunction returns the function name of the caller.
func CallerPackage ¶
func CallerPackage() string
CallerPackage returns the package name of the caller.
func CallerWithFilter ¶
func CallerWithFilter(filters []string, skip ...int) (function string, path string, line int, err error)
CallerWithFilter returns the caller information with path filtering.
func FuncName ¶
func FuncName(f interface{}) string
FuncName returns the function name of given `f`.
func FuncPath ¶
func FuncPath(f interface{}) string
FuncPath returns the complete function path of given `f`.
func GoroutineId ¶
GoroutineId retrieves and returns the current goroutine id from stack information. Note: This function has low performance due to its use of runtime.Stack. It is primarily intended for debugging purposes.
func SetStackFilterKey ¶
func SetStackFilterKey(key string)
SetStackFilterKey sets the stack filter key used for filtering debug information.
func StackWithFilter ¶
StackWithFilter returns a formatted stack trace with a single filter.
func StackWithFilters ¶
StackWithFilters returns a formatted stack trace with multiple filters.
Types ¶
This section is empty.