Documentation ¶
Index ¶
- func AddStringGap(str string, min int, gap int) string
- func CamelToSnake(str string) string
- func Capitalize(str string) string
- func CopyString(str string) string
- func DecodeBig5(s []byte) ([]byte, error)
- func DecodeGBK(s []byte) ([]byte, error)
- func EncodeBig5(s []byte) ([]byte, error)
- func EncodeGBK(s []byte) ([]byte, error)
- func FirstToLower(str string) string
- func FirstToUpper(str string) string
- func LocalPath() string
- func Nil[T any]() T
- func RandString(len int) string
- func SnakeToCamel(src string) string
- func SplitArray[T comparable](s string, split string) ([]T, error)
- func SplitCamelCase(src string) []string
- func SplitCamelCaseCapitalize(src string) (entries []string)
- func SplitCamelCaseCapitalizeSlash(src string) string
- func SplitCamelCaseLowerSlice(src string) (entries []string)
- func SplitCamelCaseLowerSnake(src string) string
- func SplitCamelCaseUpperSlice(src string) (entries []string)
- func SplitCamelCaseUpperSnake(src string) string
- func SplitFloat32Array(s string, split string) ([]float32, error)
- func SplitFloat64Array(s string, split string) ([]float64, error)
- func SplitInt32Array(s string, split string) ([]int32, error)
- func SplitInt32Map(s string, split string, mapSep string) (map[int32]int32, error)
- func SplitInt64Array(s string, split string) ([]int64, error)
- func SplitIntArray(s string, split string) ([]int, error)
- func SplitStringArray(s string, split string) []string
- func StartWithCapital(str string) bool
- func TrimEnd(str string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CamelToSnake ¶ added in v0.1.26
func Capitalize ¶
func CopyString ¶
func FirstToLower ¶
func FirstToUpper ¶
func RandString ¶
func SnakeToCamel ¶ added in v0.1.43
func SplitArray ¶ added in v0.2.12
func SplitArray[T comparable](s string, split string) ([]T, error)
func SplitCamelCase ¶
func SplitCamelCaseLowerSlice ¶ added in v0.1.26
func SplitCamelCaseLowerSnake ¶ added in v0.1.26
func SplitCamelCaseUpperSlice ¶ added in v0.1.26
func SplitCamelCaseUpperSnake ¶ added in v0.1.26
func SplitFloat32Array ¶ added in v0.2.12
func SplitFloat64Array ¶ added in v0.1.43
func SplitInt32Array ¶ added in v0.0.6
func SplitInt32Map ¶ added in v0.0.6
func SplitInt64Array ¶ added in v0.0.6
func SplitStringArray ¶ added in v0.1.29
func StartWithCapital ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.