Documentation ¶
Index ¶
- Constants
- Variables
- func As(err error, target any) bool
- func Deferred(err *error, ef func() error)
- func DeferredChan(ch chan<- error, f func() error)
- func DeferredChanError(err *error, ch <-chan error)
- func DeferredCloser(err *error, c io.Closer)
- func DeferredFlusher(err *error, f Flusher)
- func Errf(f string, a ...interface{})
- func Error(err error)
- func Errorf(f string, values ...interface{}) (err errer)
- func Implement() (err error)
- func Is(err, target error) bool
- func IsAsNilOrWrapf(err error, target error, format string, values ...interface{}) (out error)
- func IsBrokenPipe(err error) bool
- func IsEOF(err error) bool
- func IsErrno(err error, target syscall.Errno) (ok bool)
- func IsExist(err error) bool
- func IsNotExist(err error) bool
- func IsTooManyOpenFiles(err error) bool
- func IsVerbose() bool
- func Join(es ...error) error
- func MakeMulti(errs ...error) (em *multi)
- func Normal(err error) *normalError
- func Normalf(fmt string, args ...interface{}) *normalError
- func PanicIfError(err interface{})
- func PrintErr(a ...interface{}) (err error)
- func PrintErrf(f string, a ...interface{}) (err error)
- func SetTesting()
- func SetTodoOn()
- func SetVerbose()
- func Split(err error) (out []error)
- func Todo(f string, a ...interface{}) (err error)
- func TodoP0(f string, a ...interface{}) (err error)
- func TodoP1(f string, a ...interface{}) (err error)
- func TodoP2(f string, a ...interface{}) (err error)
- func TodoP3(f string, a ...interface{}) (err error)
- func TodoP4(f string, a ...interface{}) (err error)
- func TodoP5(f string, a ...interface{}) (err error)
- func TodoRecoverable(f string, a ...interface{}) (err error)
- func Unwrap(err error) error
- func Wrap(in error) (err errer)
- func WrapN(n int, in error) (err errer)
- func Wrapf(in error, f string, values ...interface{}) (err errer)
- type DevPrinter
- type Flusher
- type Iser
- type Logger
- type Multi
- type Priority
- type ProdPrinter
- type StackInfo
- type StackTracer
- type Unwrapper
Constants ¶
View Source
const ( P0 = Priority(iota) P1 P2 P3 P4 P5 )
Variables ¶
View Source
var New = errors.New
Functions ¶
func DeferredChan ¶
func DeferredChanError ¶
func DeferredCloser ¶
func DeferredFlusher ¶
func IsAsNilOrWrapf ¶
func IsBrokenPipe ¶
func IsNotExist ¶
func IsTooManyOpenFiles ¶
func PanicIfError ¶
func PanicIfError(err interface{})
func SetTesting ¶
func SetTesting()
func SetVerbose ¶
func SetVerbose()
func TodoRecoverable ¶
Types ¶
type DevPrinter ¶
type DevPrinter interface { ProdPrinter Caller(i int, f string, vs ...interface{}) FunctionName(skip int) }
func Debug ¶
func Debug() DevPrinter
func Log ¶
func Log() DevPrinter
type Logger ¶
type Logger interface { Print(v ...interface{}) Printf(format string, v ...interface{}) }
type ProdPrinter ¶
type ProdPrinter interface { Print(v ...interface{}) error Printf(format string, v ...interface{}) error }
func Err ¶
func Err() ProdPrinter
func Out ¶
func Out() ProdPrinter
type StackInfo ¶
type StackInfo struct {
// contains filtered or unexported fields
}
func MakeStackInfo ¶
func MakeStackInfos ¶
type StackTracer ¶
Click to show internal directories.
Click to hide internal directories.