{"modulePath":"github.com/CS-SI/SafeScale/v21","version":"v21.11.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package callstack\n\n## Functions\n\n```go\nfunc DecorateWith(prefix, what, why string, ignoreCount uint) string\n```\nDecorateWith 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\n\n```go\nfunc IgnoreTraceUntil(callTrace interface{}, search string, stop Enum) string\n```\nIgnoreTraceUntil 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'\n\n```go\nfunc SourceFilePathUpdater() func(string) string\n```\nSourceFilePathUpdater returns a function to alter source file path, if debug is not enabled\n\n## Types\n\n```go\ntype Enum int\n```\nEnum ...\n\n```go\nconst (\n\tFirstOccurrence Enum\n\tLastOccurrence\n)\n```\n\n","path":"github.com/CS-SI/SafeScale/v21/lib/utils/debug/callstack","name":"callstack","synopsis":"","isRedistributable":true}
