Documentation
¶
Index ¶
- func BeQuiet() func()
- func CheckLock(report func(traces gotrace.Traces)) func()
- func Ignore(_ error)
- func Ok(err error)
- func OkOne[T any](arg T, err error) T
- func OkSkipOne[T any](_ T, err error)
- func OkSkipTwo[T any, S any](_ T, _ S, err error)
- func OkTwo[T any, S any](arg1 T, arg2 S, err error) (T, S)
- func Protect(run func(), reportPanic func(any))
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BeQuiet ¶
func BeQuiet() func()
BeQuiet sets stdout, stderr and the logger to null and returns a function to revert to the former values
func CheckLock ¶
CheckLock let's us ctrl-c (or KILL) and we get a stacktrace of where it was at that moment good for checking deadlocks or running with long timeouts
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.