Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var STACKLOGGER_ALLOWED_FILES []string = make([]string, 0)
View Source
var STACKLOGGER_DISALLOWED_FILES []string = make([]string, 0)
View Source
var STACKLOGGER_UNSAFE bool = true
Functions ¶
func AllowPackage ¶
func AllowPackage(pkgname string)
func DisallowPackage ¶
func DisallowPackage(pkgname string)
Types ¶
type Caller ¶
type Callers ¶
type Callers struct { Callers StackTrace // contains filtered or unexported fields }
func (*Callers) Trace ¶
func (c *Callers) Trace() StackTrace
type ErrorType ¶
type ErrorType interface { Error() string Trace() StackTrace Unwrap() error }
Error is an error with stack trace. It consists of callers and the error supplied.
type StackTrace ¶
type StackTrace []Caller // A stacktrace is a slice of callers.
func (StackTrace) Filter ¶
func (s StackTrace) Filter(filter func(Caller) bool) []Caller
Filter the stacktrace by caller.
func (StackTrace) String ¶
func (s StackTrace) String() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.