Documentation ¶
Index ¶
- func Base64Img2Byte(base64Img string) (byte []byte, err error)
- func Cent2Yuan(cent int32) string
- func CheckPasswordMd5(password string, encrypt string) bool
- func ContextWithRequestId(ctx context.Context) context.Context
- func DivCeil(a, b int) int
- func GenNanoId(len int) string
- func GenSerialNo(len int) string
- func GenUUID() string
- func GenUserNo(len int) string
- func GetContextWithRequestId() context.Context
- func GetRequestIdFromContext(ctx context.Context) string
- func Han2Pinyin(han string) string
- func Int64ToStringSlice(slice []int64) []string
- func IntToBase62(n int) string
- func IntToString(i interface{}) string
- func IsValidPhoneNum(mobile string) bool
- func Md5Encrypt(src string) (encrypt string)
- func NewProgressBar(count int, msg string) (bar *pb.ProgressBar)
- func ParseStartAndEnd(start time.Time, end time.Time) (startAt time.Time, endAt time.Time)
- func ParseStartAndEnd2Str(start time.Time, end time.Time) (string, string)
- func RandomInt(start, end int) int
- func RemoveDuplicates(s []string) []string
- func RemoveEmoji(sentence string) string
- func RemovePunctuation(sentence string) string
- func StringToInt(i interface{}) int
- func StringToInt64Slice(slice []string) []int64
- func ToInt16(i interface{}) int16
- func ToInt32(i interface{}) int32
- func ToInt64(i interface{}) int64
- func ToInt8(i interface{}) int8
- func WsJsonMsg2Map(jsonMsg interface{}) (res map[string]interface{}, err error)
- func Yuan2Cent(yuan string) int32
- type Sid
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64Img2Byte ¶
Base64Img2Byte Base64图片编码转[]byte
func CheckPasswordMd5 ¶
CheckPasswordMd5 md5方式检查密码
func GetContextWithRequestId ¶
func GetRequestIdFromContext ¶
func Int64ToStringSlice ¶
func IntToBase62 ¶
func IntToString ¶
func IntToString(i interface{}) string
func IsValidPhoneNum ¶
func NewProgressBar ¶
func ParseStartAndEnd ¶
ParseStartAndEnd 获取开始时间的 00:00:00 和结束时间的 23:59:59
func ParseStartAndEnd2Str ¶
func RemovePunctuation ¶
RemovePunctuation 去掉字符串的标点符号
func StringToInt ¶
func StringToInt(i interface{}) int
func StringToInt64Slice ¶
func WsJsonMsg2Map ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.