callstack

package
v22.11.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2023 License: Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecorateWith

func DecorateWith(prefix, what, why string, ignoreCount uint) string

DecorateWith adds call trace to the message "prefix what: why" 'ignoreCount' indicates the number of call that have to be ignored at the beginning of the stack trace

func IgnoreTraceUntil

func IgnoreTraceUntil(callTrace interface{}, search string, stop Enum) string

IgnoreTraceUntil cuts all the lines of the trace before and including lines with 'search' in it if 'stop' contains FirstOccurrence, cuts until the first occurrence of line containing 'search' if 'stop' contains LastOccurrence, cuts until the last occurrence of line containing 'search'

func SourceFilePathUpdater

func SourceFilePathUpdater() func(string) string

SourceFilePathUpdater returns a function to alter source file path, if debug is not enabled

func WhereIsThis

func WhereIsThis() string

Types

type Enum

type Enum int

Enum ...

const (
	FirstOccurrence Enum
	LastOccurrence
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL