Documentation
¶
Index ¶
- func CamelToSnake(s string) string
- func Capitalize(s string) string
- func CleanString(s string, args ...bool) string
- func IsCapitalized(s string) bool
- func OnlyAlphaNumeric(s string) string
- func OnlyChinese(s string) string
- func OnlyNumeric(s string) string
- func ToCamelCase(s string) string
- func ToSnakeCase(s string) string
- func Truncate(s string, size int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanString ¶
CleanString 处理字符串, args[0]为是否转换为小写
func ToCamelCase ¶ added in v0.0.2
ToCamelCase converts from underscore separated form to camel case form.
func ToSnakeCase ¶ added in v0.0.2
ToSnakeCase converts from camel case form to underscore separated form.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.