{"modulePath":"github.com/UnderTreeTech/waterdrop","version":"v1.3.8","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package xstring\n\n## Functions\n\n```go\nfunc BytesToString(b []byte) string\n```\nBytesToString converts byte slice to string without a memory allocation.\n\n```go\nfunc GenerateUUID() string\n```\nGenerateUUID creates a new random UUID4 and returns it as a string or panics.\n\n```go\nfunc GetLocaleLng(lng string) string\n```\nget locale language\n\n```go\nfunc IsAlpha(s string) bool\n```\nIsAlpha checks if the string contains only unicode letters.\n\n```go\nfunc IsAlphanumeric(s string) bool\n```\nIsAlphanumeric checks if the string contains only Unicode letters or digits.\n\n```go\nfunc IsNumeric(s string) bool\n```\nIsNumeric Checks if the string contains only digits. A decimal point is not a digit and returns false.\n\n```go\nfunc RandomString(length int) string\n```\ngenerate random string by len\n\n```go\nfunc Reverse(s string) string\n```\nReverse reverses s.\n\n```go\nfunc StringToBytes(s string) (b []byte)\n```\nStringToBytes converts string to byte slice without a memory allocation.\n\n```go\nfunc StripContentType(contentType string) string\n```\nstrip content-type application/json;charset=utf-8\n\n```go\nfunc Substr(str string, start, stop int) string\n```\nSubstr returns runes between start and stop \\[start, stop) regardless of the chars are ascii or utf8. if start \\\u003c 0 or start \\\u003c length, it returns empty string if stop \\\u003c 0 or stop \u003e length, it returns rs\\[start:], otherwise it returns rs\\[start:stop]\n\n","path":"github.com/UnderTreeTech/waterdrop/pkg/utils/xstring","name":"xstring","synopsis":"","isRedistributable":true}
