xvar

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsOnlyWhitespaces

func ContainsOnlyWhitespaces(str string) bool

func FilterSql

func FilterSql(str string) (result string)

处理sql字符

func Float64ToStr

func Float64ToStr(v float64) string

func Float64Val

func Float64Val(s string, _def ...float64) float64

string转float64

func FloatToStr

func FloatToStr(v float64) string

func FloatVal

func FloatVal(s string, _def ...float32) float32

string转float

func Int64ToStr

func Int64ToStr(v int64) string

func Int64Val

func Int64Val(s string, _def ...int64) int64

string转int64

func IntToStr

func IntToStr(v int) string

func IntVal

func IntVal(s string, _def ...int) int

string转int

func IsAllEmpty

func IsAllEmpty(strs ...string) bool

func IsBlank

func IsBlank(str string) bool

func IsEmail

func IsEmail(b []byte) bool

是否邮箱

func IsEmpty

func IsEmpty(str string) bool

func IsMobile

func IsMobile(str string) bool

标准手机号判断

func IsNotBlank

func IsNotBlank(str string) bool

func IsNotEmpty

func IsNotEmpty(str string) bool

func IsNumber

func IsNumber(str string) bool

判断是否数字

func IsTel

func IsTel(str string) bool

判断手机号

func IsWhitespace

func IsWhitespace(c byte) bool

func ObjArrToStrArr

func ObjArrToStrArr(objArr []interface{}) []string

任意类型数组转字符串数组

func RegMatch

func RegMatch(str string, reg string) bool

正则校验

func ToStr

func ToStr(obj interface{}) string

任意类型转字符串

func ToStrArr

func ToStrArr(objArr ...interface{}) []string

任意类型多参数转字符串数组

Types

This section is empty.

Jump to

Keyboard shortcuts

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