Documentation ¶
Index ¶
- Variables
- func AddHook(id string, call func(s string))
- func Assert(success bool, parts ...any)
- func AssertMakeError(success bool, parts ...any) error
- func AssertNotError(err error, parts ...any)
- func CallingFunctionInfo(pos int) (function, file string, line int)
- func CallingFunctionString(pos int) string
- func CallingStackString() string
- func CallingStackStringAt(index int) string
- func Debug(parts ...any)
- func Error(parts ...any) error
- func ErrorAtStack(stackPos int, parts ...any) error
- func ErrorIf(check bool, parts ...any) bool
- func Fatal(parts ...any) error
- func FatalNotImplemented()
- func FileLineAndCallingFunctionString(pos int) string
- func Full(v any) string
- func Func()
- func HandlePanic(exit bool) error
- func Hex(v any) string
- func Info(parts ...any)
- func Infof(format string, parts ...any)
- func NewError(parts ...any) error
- func OnError(err error, parts ...any) bool
- func OnErrorTestError(t *testing.T, err error, items ...any) bool
- func Pointer(v any) string
- func PrintStartupInfo(version, commitHash, builtAt, builtBy, builtOn string)
- func RegisterEnabler(name string, b *Enabler)
- func Verbose(parts ...any)
- func Warn(parts ...any)
- func Wrap(err error, parts ...any) error
- type Enabler
- type LimitID
- type Line
- type Priority
- type Profile
- type StackAdjust
- type WrappedError
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PrintPriority = DebugLevel UseColor = false PanicHandler func(reason string, exit bool) PrintGoRoutines = false PrintDate = true EnablerList zmap.LockMap[string, *Enabler] )
View Source
var SyslogName string
Functions ¶
func AssertMakeError ¶
func AssertNotError ¶
func CallingFunctionInfo ¶
func CallingFunctionString ¶
func CallingStackString ¶
func CallingStackString() string
func CallingStackStringAt ¶
func ErrorAtStack ¶
Error performs Log with ErrorLevel priority, getting stack from N
func FatalNotImplemented ¶
func FatalNotImplemented()
func HandlePanic ¶
func PrintStartupInfo ¶
func PrintStartupInfo(version, commitHash, builtAt, builtBy, builtOn string)
func RegisterEnabler ¶
Types ¶
type Profile ¶
func NewProfile ¶
type StackAdjust ¶
type StackAdjust int
type WrappedError ¶
func (*WrappedError) Unwrap ¶
func (w *WrappedError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.