Documentation ¶
Index ¶
- Variables
- func AssertFn(fn interface{})
- func Debug()
- func ErrHandle(err interface{}, fn func(err *KErr))
- func ErrWrap(err interface{}, msg string, args ...interface{})
- 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 IsErr(p interface{}) bool
- func IsNil(p interface{}) (b bool)
- func IsPtr(p interface{}) bool
- func KTry(fn interface{}, args ...interface{}) error
- func ObjOf(args ...interface{}) []interface{}
- func P(d ...interface{})
- func Panic(fn func(m *M))
- func Resp(fn func(err *KErr))
- func SWrap(err interface{}, fn func(m *M))
- func StrOf(args ...string) []string
- func T(b bool, msg string, args ...interface{})
- func TT(b bool, fn func(m *M))
- func Throw(err interface{})
- func ToInt(p string) int
- func ToTime(t string) time.Time
- func Try(fn interface{}, args ...interface{}) (r interface{})
- func Wrap(err error, msg string, args ...interface{}) error
- type FnT
- type KErr
- 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_error", }
Functions ¶
func IsAllNotNil ¶ added in v0.1.15
func IsAllNotNil(args ...interface{}) bool
Types ¶
type KErr ¶ added in v0.0.13
type KErr struct {
// contains filtered or unexported fields
}
func (*KErr) StackTrace ¶ added in v0.1.11
func (t *KErr) StackTrace() interface{}
Click to show internal directories.
Click to hide internal directories.