Documentation ¶
Index ¶
- func CheckEmpty(value string) bool
- func CheckMaxLength(value string, maxLength int, fieldName string)
- func CheckMaxListSize(value string, maxSize int, fieldName string)
- func CheckMaxValue(value string, maxValue int, fieldName string)
- func CheckMinFloatValue(value string, minVal float64, fieldName string)
- func CheckMinValue(value string, minVal int, fieldName string)
- func CheckNotNull(value, fieldName string)
- func CheckNumber(value, fieldName string)
- func GetUUID() string
- func Hmac(key, data string) string
- func Md5(data string) string
- func NowTime() *time.Time
- func Round(f float64, n int) float64
- func SortParamters(params url.Values) []string
- func StrFirstToUpper(str string, step string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckMaxLength ¶
CheckMaxLength 检验字段fieldName的值value 的长度
func CheckMaxListSize ¶
CheckMaxListSize 检验字段fieldName的值value的最大列表长度
func CheckMaxValue ¶
CheckMaxValue 检测最大值
func CheckMinFloatValue ¶
检测最小值
func CheckMinValue ¶
CheckMinValue 检测最小值
func SortParamters ¶
SortParamters 参数排序返回排序的KEY 通过KEY循环取出
func StrFirstToUpper ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.