Documentation ¶
Index ¶
- func BytesToString(b []byte) string
- func GenerateUUID() string
- func GetLocaleLng(lng string) string
- func RandomString(length int) string
- func Reverse(s string) string
- func StringToBytes(s string) (b []byte)
- func StripContentType(contentType string) string
- func Substr(str string, start, stop int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToString ¶
BytesToString converts byte slice to string without a memory allocation.
func GenerateUUID ¶ added in v1.3.0
func GenerateUUID() string
GenerateUUID creates a new random UUID4 and returns it as a string or panics.
func StringToBytes ¶
StringToBytes converts string to byte slice without a memory allocation.
func StripContentType ¶
strip content-type application/json;charset=utf-8
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.