binding

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 27, 2022 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDecimal added in v0.0.3

func IsDecimal(s string) bool

IsDecimal 是否是 decimal

func IsDecimalGt

func IsDecimalGt(s, t string) bool

IsDecimalGt 是否是 decimal且大于t

func IsDecimalGte

func IsDecimalGte(s, t string) bool

IsDecimalGte 是否是 decimal且大于等于t

func IsDecimalLt

func IsDecimalLt(s, t string) bool

IsDecimalLt 是否是 decimal且小于t

func IsDecimalLte

func IsDecimalLte(s, t string) bool

IsDecimalLte 是否是 decimal且小于等于t

func IsMobile

func IsMobile(s string) bool

IsMobile 验证是否是手机号

func IsNumberGt0

func IsNumberGt0(s string) bool

IsNumberGt0 是否是 decimal且大于0

func IsNumberGte0

func IsNumberGte0(s string) bool

IsNumberGte0 是否是 decimal且大于等于0

func RegisterValidation

func RegisterValidation(valid *validator.Validate) error

func ValidDecimalMaxOf

func ValidDecimalMaxOf(fl validator.FieldLevel) bool

func ValidDecimalMinOf

func ValidDecimalMinOf(fl validator.FieldLevel) bool

func ValidIsDecimal added in v0.0.3

func ValidIsDecimal(fl validator.FieldLevel) bool

ValidIsDecimal 校验是否为字符串 decimal

func ValidIsDecimalGt

func ValidIsDecimalGt(fl validator.FieldLevel) bool

ValidIsDecimalGt 校验是否为字符串数字且大于0

func ValidIsDecimalGte

func ValidIsDecimalGte(fl validator.FieldLevel) bool

ValidIsDecimalGte 校验是否为字符串数字且大于等于0

func ValidIsDecimalLt

func ValidIsDecimalLt(fl validator.FieldLevel) bool

func ValidIsDecimalLte

func ValidIsDecimalLte(fl validator.FieldLevel) bool

func ValidIsMobile

func ValidIsMobile(fl validator.FieldLevel) bool

ValidIsMobile 校验是否为手机

func ValidNumberGt0

func ValidNumberGt0(fl validator.FieldLevel) bool

func ValidNumberGte0

func ValidNumberGte0(fl validator.FieldLevel) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL