Versions in this module Expand all Collapse all v1 v1.0.1 Jul 2, 2024 Changes in this version + func Bind(ptr interface{}, m map[string]interface{}) *bind + func HttpBindCookie(r *http.Request, objectPtr interface{}) error + func HttpBindForm(r *http.Request, objectPtr interface{}) error + func HttpBindHead(r *http.Request, objectPtr interface{}) error + func HttpBindJSON(r *http.Request, objectPtr interface{}) error + func HttpBindQuery(r *http.Request, objectPtr interface{}) error + func IsAccount(val interface{}) bool + func IsArrayRepeat(val interface{}) bool + func IsDate(val interface{}) bool + func IsDatetime(val interface{}) bool + func IsDomain(val interface{}) bool + func IsEmail(val interface{}) bool + func IsEq(val interface{}, arg string) bool + func IsFloat(val interface{}) bool + func IsGreatThan(val interface{}, a float64) bool + func IsGreatThanAndEqual(val interface{}, a float64) bool + func IsHourMinute(val interface{}) bool + func IsIDNumber(val interface{}) bool + func IsIP(val interface{}) bool + func IsIP4(val interface{}) bool + func IsIP6(val interface{}) bool + func IsIn(val interface{}, arg string) bool + func IsInt(val interface{}) bool + func IsLen(val interface{}, l int) bool + func IsLessThan(val interface{}, a float64) bool + func IsLessThanAndEuqal(val interface{}, a float64) bool + func IsLuHn(val interface{}) bool + func IsMac(val interface{}) bool + func IsMatch(val interface{}, arg string) bool + func IsMax(val interface{}, l int) bool + func IsMin(val interface{}, l int) bool + func IsMobile(val interface{}) bool + func IsNotIn(val interface{}, arg string) bool + func IsNotNull(val interface{}) bool + func IsPassword(val interface{}) bool + func IsPassword2(val interface{}) bool + func IsPassword3(val interface{}) bool + func IsPostcode(val interface{}) bool + func IsQQ(val interface{}) bool + func IsTel(val interface{}) bool + func IsUrl(val interface{}) bool + func Marshal(obj interface{}) string + func ParseFloat(s string) float64 + func ParseInt(s string) int64 + func RegValidater(name string, fn Handler) + func ToBool(val interface{}) (bool, error) + func ToFloat64(val interface{}) (float64, error) + func ToInt64(val interface{}) (int64, error) + func ToMap(val interface{}) (map[string]interface{}, error) + func ToSlice(val interface{}) ([]interface{}, error) + func ToString(val interface{}) (str string, err error) + func ToTime(val interface{}, layout string) (time.Time, error) + func ToUint64(val interface{}) (uint64, error) + type BindError struct + func (this *BindError) Error() string + func (this *BindError) Field() string + func (this *BindError) Msg() string + type Handler func(val interface{}, arg string) bool + type SerializeInterface interface + MarshalJSON func() ([]byte, error) + UnmarshalJSON func(data []byte) error