Documentation
¶
Index ¶
- Variables
- func CheckFileIsExist(filename string) bool
- func CopyNotEmptyProperties(source interface{}, dest interface{})
- func CopyProperties(source interface{}, dest interface{})
- func FloatRound(number float64) float64
- func GenerateNumString(num int) string
- func GetKeys(m map[string]interface{}) []string
- func GetMd5Value(data string) string
- func GetPkgRealPath(pkgPath string) string
- func GetSha1Value(data string) string
- func GetSha256Value(data string) string
- func HideMiddleStr(str string, startLen int, endLen int, replaceLetter ...string) string
- func IF(condition bool, trueValue interface{}, falseValue interface{}) interface{}
- func InArray(arr interface{}, v interface{}) bool
- func InitJwt(config *JwtConfig)
- func IsInSameDate(time1, time2 interface{}) bool
- func IsNotBlank(str string, msg string) error
- func NumberDecry(code string) (int64, error)
- func NumberEncry(num int64) (string, error)
- func ParseCode2Num(code string) int
- func ParseFloat64(v interface{}) (rt float64, err error)
- func ParseInt(v interface{}) (rt int, err error)
- func ParseInt64(v interface{}) (rt int64, err error)
- func ParseInt64OrDefault(v interface{}, defaultValue int64) (rt int64)
- func ParseIntOrDefault(v interface{}, defaultValue int) (rt int)
- func ParseString(v interface{}) string
- func RandomStr(width int) string
- func SendAliCheckSms(telephone string, checkCode string, templateCode string) (string, error)
- func Struct2Map(structName interface{}) map[string]interface{}
- func Yuan2CentVal(value float64) int
- type JwtConfig
- type LoginUser
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NumberOutOfRange = errors.New("num is great than 67108864") CodeIsInvalid = errors.New("code is invalid") )
View Source
var (
JwtUtil = &jwtUtil{}
)
View Source
var LoginUtil = &loginUtil{}
Functions ¶
func CheckFileIsExist ¶
func CopyNotEmptyProperties ¶
func CopyNotEmptyProperties(source interface{}, dest interface{})
func CopyProperties ¶
func CopyProperties(source interface{}, dest interface{})
func FloatRound ¶
func GenerateNumString ¶
func GetMd5Value ¶
func GetPkgRealPath ¶
func GetSha1Value ¶
func GetSha256Value ¶
func HideMiddleStr ¶
func IsInSameDate ¶
func IsInSameDate(time1, time2 interface{}) bool
func IsNotBlank ¶
func NumberEncry ¶
func ParseCode2Num ¶
func ParseFloat64 ¶
func ParseInt64 ¶
func ParseInt64OrDefault ¶
func ParseIntOrDefault ¶
func ParseString ¶
func ParseString(v interface{}) string
func SendAliCheckSms ¶
func Struct2Map ¶
func Struct2Map(structName interface{}) map[string]interface{}
func Yuan2CentVal ¶
Types ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.