{"modulePath":"github.com/openimsdk/tools","version":"v0.0.49","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package stringutil\n\n## Functions\n\n```go\nfunc CamelCaseToSpaceSeparated(input string) string\n```\nCamelCaseToSpaceSeparated converts a camelCase string to a space-separated format\n\n```go\nfunc Difference(slice1, slice2 []int64) []int64\n```\nGet the diff of two slices\n\n```go\nfunc DifferenceString(slice1, slice2 []string) []string\n```\nGet the diff of two slices\n\n```go\nfunc FormatString(text string, length int, alignLeft bool) string\n```\nFormatString 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).\n\n```go\nfunc GetFuncName(skips ...int) string\n```\n\n```go\nfunc GetHashCode(s string) uint32\n```\n\n```go\nfunc GetSelfFuncName() string\n```\n\n```go\nfunc Int32ToString(i int32) string\n```\n\n```go\nfunc Int64ToString(i int64) string\n```\n\n```go\nfunc IntToString(i int) string\n```\n\n```go\nfunc InterfaceArrayToStringArray(data []any) (i []string)\n```\n\n```go\nfunc Intersect(slice1, slice2 []int64) []int64\n```\nGet the intersection of two slices\n\n```go\nfunc IntersectString(slice1, slice2 []string) []string\n```\nGet the intersection of two slices\n\n```go\nfunc IsContain(target string, List []string) bool\n```\njudge a string whether in the  string list\n\n```go\nfunc IsContainInt(target int, List []int) bool\n```\n\n```go\nfunc IsContainInt32(target int32, List []int32) bool\n```\n\n```go\nfunc IsDuplicateStringSlice(arr []string) bool\n```\n\n```go\nfunc LowerFirst(input string) string\n```\nLowerFirst lower the first letter of the input string\n\n```go\nfunc RemoveDuplicate[T comparable](arr []T) []T\n```\n\n```go\nfunc RemoveDuplicateElement(idList []string) []string\n```\n\n```go\nfunc StringToInt(i string) int\n```\n\n```go\nfunc StringToInt32(i string) int32\n```\n\n```go\nfunc StringToInt64(i string) int64\n```\n\n```go\nfunc StructToJsonBytes(param any) []byte\n```\n\n```go\nfunc Uint32ToString(i uint32) string\n```\n\n```go\nfunc UpperFirst(input string) string\n```\nUpperFirst upper the first letter of the input string\n\n```go\nfunc WithMessage(err error, message string) error\n```\n\n","path":"github.com/openimsdk/tools/utils/stringutil","name":"stringutil","synopsis":"","isRedistributable":true}
