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 DeferredCloseAndRename(err *error, c io.Closer, oldpath, newpath string)
- 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 IsErrFalse(err error) bool
- func IsErrTrue(err error) bool
- func IsErrno(err error, target syscall.Errno) (ok bool)
- func IsExist(err error) bool
- func IsNotExist(err error) bool
- func IsNotNilAndNotEOF(err error) bool
- func IsStopIteration(err error) bool
- func IsTooManyOpenFiles(err error) bool
- func IsVerbose() bool
- func Join(es ...error) error
- func MakeErrStopIteration() 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 error)
- func WrapExcept(in error, except ...error) (err error)
- func WrapExceptAsNil(in error, except ...error) (err error)
- func WrapN(n int, in error) (err error)
- func Wrapf(in error, f string, values ...interface{}) (err error)
- type DevPrinter
- type Flusher
- type FlusherWithLogger
- type Iser
- type Logger
- type Multi
- type Priority
- type ProdPrinter
- type StackInfo
- type StackTracer
- type Unwrapper
Constants ¶
Variables ¶
Functions ¶
func DeferredCloseAndRename ¶
func IsAsNilOrWrapf ¶
func PanicIfError ¶
func PanicIfError(err interface{})
func SetTesting ¶
func SetTesting()
func SetTodoOn ¶
func SetTodoOn()
func SetVerbose ¶
func SetVerbose()
Types ¶
type DevPrinter ¶
type DevPrinter interface { ProdPrinter Caller(i int, vs ...interface{}) FunctionName(skip int) }
func Debug ¶
func Debug() DevPrinter
func Log ¶
func Log() DevPrinter
type FlusherWithLogger ¶
type FlusherWithLogger interface {
Flush(schnittstellen.FuncIter[string]) error
}
type Logger ¶
type Logger interface { Print(v ...interface{}) Printf(format string, v ...interface{}) }
type Multi ¶
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
}
Click to show internal directories.
Click to hide internal directories.