Documentation ¶
Index ¶
- Variables
- func Clone(inter interface{}) interface{}
- func IsArrayOrSlice(item interface{}) bool
- func IsNoEnvErr(err error) bool
- func IsPointer(item interface{}) bool
- func IsPointerOfPointer(item interface{}) bool
- func IsStruct(item interface{}) bool
- func LoadDotenv(filepaths ...string) error
- func SetValueByName(name string, value interface{}, result interface{}) (err error)
- func ValidateEmail(email string) error
- func ValidateEthAddress(address string) error
- func ValidateGE(min int, src interface{}) error
- func ValidateLE(max int, src interface{}) error
- func ValidateLenBetween(min, max int, src interface{}) error
- func ValidateOnlyAlphaNumber(src string) error
- func ValidateOnlyAscii(src string) error
- func ValidateOnlyNumber(src string) error
- func ValidatePassword(pass string, min int) error
- func ValidateTelNum(telNum string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotNumber = errors.New("not number") ErrInvalidEthAddress = errors.New("invalid eth address") )
Functions ¶
func IsArrayOrSlice ¶
func IsArrayOrSlice(item interface{}) bool
func IsNoEnvErr ¶
func IsPointerOfPointer ¶
func IsPointerOfPointer(item interface{}) bool
func LoadDotenv ¶
func SetValueByName ¶
func ValidateEmail ¶
func ValidateEthAddress ¶
func ValidateGE ¶
NOTE: is greater than or equal to `>=`
func ValidateLE ¶
NOTE: is less than or equal to `<=`
func ValidateLenBetween ¶
func ValidateOnlyAlphaNumber ¶
func ValidateOnlyNumber ¶
func ValidatePassword ¶
NOTE: Ref http://www.inanzzz.com/index.php/post/8l1a/validating-user-password-in-golang-requests
func ValidateTelNum ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.