text

package module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2026 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CamelToSnake

func CamelToSnake(s string) string

CamelToSnake 字符串驼峰转snake风格

func Capitalize

func Capitalize(s string) string

Capitalize 字符串首字母大写

func CleanString

func CleanString(s string, args ...bool) string

CleanString 处理字符串, args[0]为是否转换为小写

func IsCapitalized

func IsCapitalized(s string) bool

IsCapitalized 字符串首字母是否大写

func OnlyAlphaNumeric

func OnlyAlphaNumeric(s string) string

OnlyAlphaNumeric 去除字符数字以外的所有字符

func OnlyChinese

func OnlyChinese(s string) string

OnlyChinese 去除中文以外的所有字符

func OnlyNumeric

func OnlyNumeric(s string) string

OnlyNumeric 去除数字以外的所有字符

func ToCamelCase added in v0.0.2

func ToCamelCase(s string) string

ToCamelCase converts from underscore separated form to camel case form.

func ToSnakeCase added in v0.0.2

func ToSnakeCase(s string) string

ToSnakeCase converts from camel case form to underscore separated form.

func Truncate

func Truncate(s string, size int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL