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(m *M))
- func If(b bool, t, f interface{}) interface{}
- func IsNil(p interface{}) (b bool)
- func P(d ...interface{})
- func Panic(err error)
- func Resp(fn func(err *Err))
- func T(b bool, msg string, args ...interface{})
- func TT(b bool, fn func(m *M))
- func Try(fn interface{}, cfn ...interface{}) (err error)
- func Wrap(err error, msg string, args ...interface{})
- func WrapM(err error, fn func(m *M))
- type Err
- type M
Constants ¶
This section is empty.
Variables ¶
View Source
var Cfg = struct { Debug bool }{ Debug: false, }
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.