Documentation ¶
Index ¶
- func CheckEncryptPbkdf2(str, encryptStr string) bool
- func EncryptPbkdf2(str string) (string, error)
- func FormatFloat64(v float64, dec int) (float64, error)
- func GetArrayIndex(values []string, value string) (int, error)
- func IsNil(checkVal interface{}, nilVal string) string
- func TernaryOperation(check bool, trueVal, falseVal interface{}) interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckEncryptPbkdf2 ¶
CheckEncryptPbkdf2 验证字符串是否与加密串匹配
func FormatFloat64 ¶
FormatFloat64 格式化float64保留指定位小数
func GetArrayIndex ¶
GetArrayIndex 获取指定字符串在数组中的位置
func TernaryOperation ¶
func TernaryOperation(check bool, trueVal, falseVal interface{}) interface{}
TernaryOperation 三元运算
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.