Documentation ¶
Index ¶
- Constants
- func CanExpand(t reflect.Type) bool
- func CanInline(t reflect.Type) bool
- func CheckErr(err error, exit ...bool)
- func GetBuff() *bytes.Buffer
- func GetField(v reflect.Value, i int) reflect.Value
- func IfVal(condition bool, trueVal, falseVal interface{}) interface{}
- func LabelType(t reflect.Type) bool
- func Nonzero(v reflect.Value) bool
- func PutBuff(buffer *bytes.Buffer)
- func ReflectForNumField(v reflect.Value, ...)
- func RunAllMethod(st interface{}, args ...interface{}) (err error)
- func SetValue(vTypeOf reflect.Kind, vValueOf reflect.Value, value interface{}) (err error)
- func Try(fn func(), catch func(e interface{}), finally ...func())
- func WithLockContext(fn func())
- func WithRunTimeContext(closer func(), callback func(time.Duration))
Constants ¶
View Source
const BuffSize = 10 * 1024
Variables ¶
This section is empty.
Functions ¶
func IfVal ¶
func IfVal(condition bool, trueVal, falseVal interface{}) interface{}
IfVal Simulate ternary calculations, pay attention to handling no variables or indexing problems
func ReflectForNumField ¶
func RunAllMethod ¶ added in v0.0.26
func RunAllMethod(st interface{}, args ...interface{}) (err error)
func WithLockContext ¶
func WithLockContext(fn func())
func WithRunTimeContext ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.