Documentation ¶
Index ¶
- func ErrWrap(err error, fn func(m *M))
- func FnCost(f func()) time.Duration
- func If(b bool, t, f interface{}) interface{}
- func IfEquals(args ...interface{}) bool
- func IfIn(a interface{}, args ...interface{}) bool
- func IfNotIn(a interface{}, args ...interface{}) bool
- func IsAllNil(args ...interface{}) bool
- func IsAllNotNil(args ...interface{}) bool
- func IsNil(p interface{}) (b bool)
- func KTry(fn func()) (err error)
- func NewTask(max int, maxDur time.Duration) *task
- func ObjOf(args ...interface{}) []interface{}
- func P(d ...interface{})
- func Retry(num int, fn func()) (err error)
- func ST(b bool, msg string, args ...interface{})
- func SWrap(err error, msg string, args ...interface{})
- func StrOf(args ...string) []string
- func T(b bool, fn func(m *M))
- func Throw(err error)
- func Ticker(fn func(dur time.Time) time.Duration)
- func ToInt(p string) int
- func Try(fn func()) (r interface{})
- func WaitFor(fn func(dur time.Duration) bool)
- type FnT
- type KErr
- type M
- type TaskFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAllNotNil ¶ added in v0.1.15
func IsAllNotNil(args ...interface{}) bool
Types ¶
type KErr ¶ added in v0.0.13
type KErr struct { Tag string `json:"tag,omitempty"` M map[string]interface{} `json:"m,omitempty"` Err error `json:"err,omitempty"` Msg string `json:"msg,omitempty"` Caller string `json:"caller,omitempty"` Sub *KErr `json:"sub,omitempty"` }
func (*KErr) StackTrace ¶ added in v0.1.11
func (t *KErr) StackTrace() interface{}
Click to show internal directories.
Click to hide internal directories.