text

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2025 License: MPL-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CamelToSnake added in v0.0.3

func CamelToSnake(s string) string

CamelToSnake 字符串驼峰转snake风格

func Capitalize added in v0.0.3

func Capitalize(s string) string

Capitalize 字符串首字母大写

func CleanString

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

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

func IsCapitalized added in v0.0.3

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 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