Versions in this module Expand all Collapse all v1 v1.0.0 Aug 15, 2023 Changes in this version + 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 struct + func NewSid() *Sid + func (s Sid) GenString() (string, error) + func (s Sid) GenUint64() (uint64, error)