Documentation ¶
Index ¶
- func CamelCaseToSpaceSeparated(input string) string
- 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 IsAlphanumeric(s string) bool
- 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 IsValidEmail(email string) bool
- func LowerFirst(input string) 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 any) []byte
- func Uint32ToString(i uint32) string
- func UpperFirst(input string) string
- func WithMessage(err error, message string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CamelCaseToSpaceSeparated ¶ added in v0.0.49
CamelCaseToSpaceSeparated converts a camelCase string to a space-separated format
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 IsAlphanumeric ¶
func IsContainInt ¶
func IsContainInt32 ¶
func IsDuplicateStringSlice ¶
func IsValidEmail ¶
IsValidEmail checks if the input string is a valid email address.
func LowerFirst ¶ added in v0.0.49
LowerFirst lower the first letter of the input string
func RemoveDuplicate ¶
func RemoveDuplicate[T comparable](arr []T) []T
func RemoveDuplicateElement ¶
func StringToInt ¶
func StringToInt32 ¶
func StringToInt64 ¶
func StructToJsonBytes ¶
func Uint32ToString ¶
func UpperFirst ¶ added in v0.0.49
UpperFirst upper the first letter of the input string
func WithMessage ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.