Documentation
¶
Index ¶
- func Difference(slice1, slice2 []int64) []int64
- func DifferenceString(slice1, slice2 []string) []string
- func GenConversationIDForSingle(sendID, recvID string) string
- func GenConversationUniqueKeyForGroup(groupID string) string
- func GenConversationUniqueKeyForSingle(sendID, recvID string) string
- func GenGroupConversationID(groupID string) string
- func GetFuncName(skips ...int) string
- func GetHashCode(s string) uint32
- func GetNotificationConversationIDByConversationID(conversationID string) string
- func GetSelfFuncName() string
- func GetSelfNotificationConversationID(userID string) string
- func GetSeqsBeginEnd(seqs []int64) (int64, int64)
- func Int32ToString(i int32) string
- func Int64ToString(i int64) string
- func IntToString(i int) string
- func InterfaceArrayToStringArray(data []interface{}) (i []string)
- func Intersect(slice1, slice2 []int64) []int64
- func IntersectString(slice1, slice2 []string) []string
- func IsContain(target string, List []string) bool
- func IsContainInt(target int, List []int) bool
- func IsContainInt32(target int32, List []int32) bool
- func IsDuplicateStringSlice(arr []string) bool
- func JsonStringToStruct(s string, args interface{}) error
- func OperationIDGenerator() string
- func RemoveDuplicate[T comparable](arr []T) []T
- func RemoveDuplicateElement(idList []string) []string
- func StringToInt(i string) int
- func StringToInt32(i string) int32
- func StringToInt64(i string) int64
- func StructToJsonBytes(param interface{}) []byte
- func Uint32ToString(i uint32) string
- func WithMessage(err error, message string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DifferenceString ¶
Get the diff of two slices
func GenGroupConversationID ¶
func GetFuncName ¶
func GetHashCode ¶
func GetSelfFuncName ¶
func GetSelfFuncName() string
func GetSeqsBeginEnd ¶
func Int32ToString ¶
func Int64ToString ¶
func IntToString ¶
func InterfaceArrayToStringArray ¶
func InterfaceArrayToStringArray(data []interface{}) (i []string)
func IntersectString ¶
Get the intersection of two slices
func IsContainInt ¶
func IsContainInt32 ¶
func IsDuplicateStringSlice ¶
func JsonStringToStruct ¶
The incoming parameter must be a pointer
func OperationIDGenerator ¶
func OperationIDGenerator() string
func RemoveDuplicate ¶
func RemoveDuplicate[T comparable](arr []T) []T
func RemoveDuplicateElement ¶
func StringToInt ¶
func StringToInt32 ¶
func StringToInt64 ¶
func StructToJsonBytes ¶
func StructToJsonBytes(param interface{}) []byte
func Uint32ToString ¶
func WithMessage ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.