mystr

package
v1.8.7 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: BSD-3-Clause Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalcStrFreq

func CalcStrFreq(str, cond string) (n int)

计算给定src字符串中出现cond的次数

func IsWhitespace

func IsWhitespace(r rune) bool

func RemoveSpace

func RemoveSpace(str string) string

func RemoveSpec

func RemoveSpec(str string, spec string) string

func Split

func Split(src string, flagList []string) []string

func SplitByLen

func SplitByLen(s string, length int) []string

func SplitRuneByLen

func SplitRuneByLen(s string, length int) []string

func ToCamel

func ToCamel(input string) string

将字符串转成 驼峰风格

func ToFirstLower

func ToFirstLower(s string) string

FirstLower 字符串首字母小写

func ToFirstUpper

func ToFirstUpper(s string) string

FirstUpper 字符串首字母大写

func ToHeader

func ToHeader(input string) string

ToHeaderCase converts the string to 'Header-Case' and returns it.

func ToPascal

func ToPascal(input string) string

func ToProperty

func ToProperty(input string) string

func ToSnake

func ToSnake(input string) string

将字符串转成 蛇形风格

func ToTitle

func ToTitle(input string) string

将字符串转成 Title :每个字母,首字母大写

Types

This section is empty.

Jump to

Keyboard shortcuts

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