Documentation
¶
Index ¶
- Variables
- func Debug()
- func ErrHandle(err interface{}, fn ...func(err *Err))
- func FnCost(f func()) time.Duration
- func FnOf(fn interface{}, args ...interface{}) func() []reflect.Value
- func Handle(fn func())
- func If(b bool, t, f interface{}) interface{}
- func IsZero(v interface{}) bool
- func P(d ...interface{})
- func Panic(err interface{})
- func Resp(fn func(err *Err))
- func Retry(num int, fn func())
- func T(b bool, msg string, args ...interface{})
- func TT(b bool, fn func(m *M))
- func Ticker(fn func(dur time.Time) time.Duration)
- func Try(fn interface{}, args ...interface{}) func(...interface{}) (err error)
- func Wrap(err interface{}, msg string, args ...interface{})
- func WrapM(err interface{}, fn func(m *M))
- type Err
- type ErrT
- type FnT
- type M
Constants ¶
This section is empty.
Variables ¶
View Source
var Cfg = struct { Debug bool }{ Debug: true, }
View Source
var ErrTag = struct { UnknownErr string }{ UnknownErr: "unknown", }
Functions ¶
Types ¶
type Err ¶
type Err struct {
// contains filtered or unexported fields
}
func (*Err) StackTrace ¶
func (t *Err) StackTrace() *_Err
Click to show internal directories.
Click to hide internal directories.