Documentation
¶
Index ¶
- func AesDecrypt(crypted, key []byte) ([]byte, error)
- func AesEncrypt(origData, key []byte) ([]byte, error)
- func CopyFile(srcName string, dstName string) (written int64, err error)
- func DifferenceSubset(mainSlice, subSlice []uint32) []uint32
- func DifferenceSubsetString(mainSlice, subSlice []string) []string
- func FileExist(filename string) bool
- func FileTmpPath(fullPath, dbPrefix string) string
- func GetConversationIDBySessionType(sourceID string, sessionType int) string
- func GetCurrentTimestampByMill() int64
- func GetCurrentTimestampByNano() int64
- func GetCurrentTimestampBySecond() int64
- func GetErrSuperGroupTableName(groupID string) string
- func GetGroupIDForMinSeq(groupID string) string
- func GetMsgID(sendID string) string
- func GetSelfFuncName() string
- func GetSuperGroupTableName(groupID string) string
- func GetSwitchFromOptions(Options map[string]bool, key string) (result bool)
- func GetUserIDForMinSeq(userID string) string
- func Int32ToString(i int32) string
- func Int64ToString(i int64) string
- func IntToString(i int) string
- func Intersect(slice1, slice2 []uint32) []uint32
- func IsContain(target string, List []string) bool
- func IsContainInt(target int, List []int) bool
- func IsContainUInt32(target uint32, List []uint32) bool
- func JsonDataOne(pb proto.Message) map[string]interface{}
- func JsonStringToStruct(s string, args interface{}) error
- func KMP(rMainString string, rSubString string) (isInMainString bool)
- func LogBegin(v ...interface{})
- func LogEnd(v ...interface{})
- func LogFReturn(v ...interface{})
- func LogSReturn(v ...interface{})
- func LogStart(v ...interface{})
- func Md5(s string) string
- func OperationIDGenerator() string
- func PKCS5Padding(plaintext []byte, blockSize int) []byte
- func PKCS5UnPadding(origData []byte) []byte
- func ProtoToMap(pb proto.Message, idFix bool) map[string]interface{}
- func RemoveRepeatedStringInList(slc []string) []string
- func RunFuncName() string
- func SetSwitchFromOptions(Options map[string]bool, key string, value bool)
- func StringToInt(i string) int
- func StringToInt64(i string) int64
- func StructToJsonString(param interface{}) string
- func StructToJsonStringDefault(param interface{}) string
- func StructToMap(user interface{}) map[string]interface{}
- func TrimStringList(list []string) (result []string)
- func UnixNanoSecondToTime(nanoSecond int64) time.Time
- func UnixSecondToTime(second int64) time.Time
- func WithMessage(err error, message string) error
- func Wrap(err error, message string) error
- type LogInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesDecrypt ¶
func AesEncrypt ¶
func DifferenceSubset ¶
Get the diff of two slices
func DifferenceSubsetString ¶
func FileTmpPath ¶
func GetCurrentTimestampByMill ¶
func GetCurrentTimestampByMill() int64
Get the current timestamp by Mill
func GetCurrentTimestampByNano ¶
func GetCurrentTimestampByNano() int64
Get the current timestamp by Nano
func GetCurrentTimestampBySecond ¶
func GetCurrentTimestampBySecond() int64
func GetGroupIDForMinSeq ¶
func GetSelfFuncName ¶
func GetSelfFuncName() string
func GetSuperGroupTableName ¶
func GetSwitchFromOptions ¶
func GetUserIDForMinSeq ¶
func Int32ToString ¶
func Int64ToString ¶
func IntToString ¶
func IsContainInt ¶
func IsContainUInt32 ¶
func JsonDataOne ¶
func JsonStringToStruct ¶
The incoming parameter must be a pointer
func LogFReturn ¶
func LogFReturn(v ...interface{})
func LogSReturn ¶
func LogSReturn(v ...interface{})
func OperationIDGenerator ¶
func OperationIDGenerator() string
func PKCS5Padding ¶
func PKCS5UnPadding ¶
func RunFuncName ¶
func RunFuncName() string
func SetSwitchFromOptions ¶
func StringToInt ¶
func StringToInt64 ¶
func StructToJsonString ¶
func StructToJsonString(param interface{}) string
func StructToJsonStringDefault ¶
func StructToJsonStringDefault(param interface{}) string
func StructToMap ¶
func StructToMap(user interface{}) map[string]interface{}
func TrimStringList ¶
func UnixNanoSecondToTime ¶
Convert nano timestamp to time.Time type
func UnixSecondToTime ¶
func WithMessage ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.