Documentation ¶
Index ¶
- func Difference(slice1, slice2 []int64) []int64
- func DifferenceString(slice1, slice2 []string) []string
- func FormatString(text string, length int, alignLeft bool) string
- func GetFuncName(skips ...int) string
- func GetHashCode(s string) uint32
- func GetSelfFuncName() string
- func Int32ToString(i int32) string
- func Int64ToString(i int64) string
- func IntToString(i int) string
- func InterfaceArrayToStringArray(data []any) (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 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 any) []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 FormatString ¶ added in v0.0.48
FormatString formats a string with a specified length and alignment. `text` is the input string to format. `length` is the desired length of the output string. `alignLeft` specifies whether the string should be left-aligned (true) or right-aligned (false).
func GetFuncName ¶
func GetHashCode ¶
func GetSelfFuncName ¶
func GetSelfFuncName() string
func Int32ToString ¶
func Int64ToString ¶
func IntToString ¶
func IntersectString ¶
Get the intersection of two slices
func IsContainInt ¶
func IsContainInt32 ¶
func IsDuplicateStringSlice ¶
func RemoveDuplicate ¶
func RemoveDuplicate[T comparable](arr []T) []T
func RemoveDuplicateElement ¶
func StringToInt ¶
func StringToInt32 ¶
func StringToInt64 ¶
func StructToJsonBytes ¶
func Uint32ToString ¶
func WithMessage ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.