Documentation ¶
Index ¶
- func CamelToUnderline(target string) string
- func CleanSpace(str string) string
- func DeleteExtraSpace(s string) string
- func FillFirst(str string, length int, char string) string
- func FillLast(str string, length int, char string) string
- func GetStrLength(str string) float64
- func IsLowerFirst(str string) bool
- func IsUpperFirst(str string) bool
- func LowerFirst(str string) string
- func ReplaceForamtTypeScript(format string, obj map[string]interface{}) string
- func Reverse(str string) string
- func SplitLast(str string, sep string) string
- func SplitPrevLast(str string, sep string) (prev string, last string)
- func SplitUpper(target string) []string
- func UnderlineToCamel(target string) string
- func UpperFirst(str string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteExtraSpace ¶
DeleteExtraSpace 删除字符串中多余的空格(含tab),有多个空格时,仅保留一个空格,同时将字符串中的tab换为空格
func GetStrLength ¶
GetStrLength 返回输入的字符串的字数,汉字和中文标点算 1 个字数,英文和其他字符 2 个算 1 个字数,不足 1 个算 1个
func ReplaceForamtTypeScript ¶
${_id}:${内网地址}
func SplitPrevLast ¶
SplitPrevLast 获取字符串被"."分离后的字符串数组中 ,最后一个字符串。
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.