Versions in this module Expand all Collapse all v0 v0.1.0 Sep 29, 2019 Changes in this version + func Assert(express interface{}, v interface{}, msg ...string) + func Compare(v1 interface{}, v2 interface{}, comparer ...CompareFunc) int + func Each(items interface{}, fn EachFunc) + func EachMap(items map[string]interface{}, fn EachFunc) + func EachSlice(items []interface{}, fn EachFunc) + func EachStruct(items *struct{}, fn EachFunc) + func Equired(v1 interface{}, v2 interface{}, comparer ...CompareFunc) bool + func Find(items []interface{}, fn FilterFunc) interface + func FindIndex(items []interface{}, fn FilterFunc) int + func FindTagValue(tag reflect.StructTag, field string) interface + func If(express bool, trueValue, falseValue interface{}) interface + func If_bool(express bool, trueValue, falseValue bool) bool + func If_byte(express bool, trueValue, falseValue byte) byte + func If_float(express bool, trueValue, falseValue float32) float32 + func If_float64(express bool, trueValue, falseValue float64) float64 + func If_int(express bool, trueValue, falseValue int) int + func If_int16(express bool, trueValue, falseValue int8) int8 + func If_int32(express bool, trueValue, falseValue int32) int32 + func If_int64(express bool, trueValue, falseValue int64) int64 + func If_int8(express bool, trueValue, falseValue int8) int8 + func If_method(express bool, trueMethod, falseMethod func()) + func If_str(express bool, trueValue, falseValue string) string + func If_uint(express bool, trueValue, falseValue uint) uint + func If_uint16(express bool, trueValue, falseValue uint16) uint16 + func If_uint32(express bool, trueValue, falseValue uint32) uint32 + func If_uint64(express bool, trueValue, falseValue uint64) uint64 + func If_uint8(express bool, trueValue, falseValue uint8) uint8 + func Map(items interface{}, fn MapFunc) interface + func MapMap(items map[string]interface{}, fn MapFunc) map[string]interface + func MapSlice(items []interface{}, fn MapFunc) []interface + func MapStruct(items *struct{}, fn MapFunc) map[string]interface + func Max(value1, value2 interface{}) interface + func MaxEx(values ...interface{}) interface + func Min(value1, value2 interface{}) interface + func MinEx(values ...interface{}) interface + func ParseTag(tag reflect.StructTag) map[string]interface + func Thown(msg string, code int) + func TryCatch(try func(), catch func(err XError, args ...interface{})) + func TryFinally(try func(), finally func(...interface{})) + type A = []O + type AM = []M + type CompareFunc func(value1, value2 interface{}) int + type EachFunc func(item interface{}, indexOrKey interface{}) interface + type FilterFunc func(item interface{}, indexOrKey interface{}) bool + type M = map[string]O + type MapFunc func(item interface{}, indexOrKey interface{}, args ...interface{}) interface + type O = interface + func If_func(express bool, trueFunc, falseFunc func() O) O + type XError interface + Error func() error + GetCode func() int + GetMessage func() string + func NewError(msg string, code int) XError