package
1.2.3
Repository: https://github.com/minlib/go-util.git
Documentation: pkg.go.dev

# Functions

ContainsAnyString reports whether substr is within any s.
EqualAnyFold tests whether the string s equal under simple Unicode case-folding.
FirstToLower First letter to lower case.
FirstToUpper First letter to upper case.
HasAnyPrefix tests whether the string s ends with any prefix.
HasAnySuffix tests whether the string s ends with any suffix.
HideLeft 隐藏字符串,从左边指定位置的所有字符串数.
HideLeftLimit 隐藏字符串,从左边开始的字符串数.
HideRight 隐藏字符串,从右边指定位置的所有字符串数.
HideRightLimit 隐藏字符串,从右边开始限定的字符串数.
HumpToUnderline 大小驼峰转下划线.
IsAnyBlank 判断是否存在空白(任意一个为空白,返回true).
IsAnyEmpty 判断是否存在空(任意一个为空,返回true).
IsAnyNotBlank 判断是否存在非空白字符串(任意一个不为空白,返回true).
IsAnyNotEmpty 判断是否存在非空字符串(任意一个不为空,返回true).
IsBlank 判断空白.
IsEmpty 判断空.
IsNoneBlank 判断不存在空白(全部不为空白,返回true).
IsNoneEmpty 判断不存在空(全部不为空,返回true).
IsNotBlank 判断非空白.
IsNotEmpty 判断非空.
Join 拼接切片.
ReplaceOffset 替换指定位置与数量的字符串 s 原字符串 repl 替换的字符 offset 开始替换字符串的索引 limit 替换的字符串数.
RuneLength 长度 RuneLength("abc123") 6 RuneLength("程序员abc123") 9.
Split slices s into all substrings separated by sep and returns a slice of the substrings between those separators.
SplitToIntegers slices s into all sub integers separated by sep and returns a slice of // the sub integers between those separators.
UnderlineToHump 下划线转驼峰.
UnderlineToLowerHump 下划线转小驼峰.
UnderlineToUpperHump 下划线转大驼峰.
ZeroFill 固定长度数字的字符串,前面补零 ZeroFill(1, 5) // 00001 ZeroFill(100, 6) // 000100 ZeroFill(123456, 6) // 123456 ZeroFill(1234567, 6) // 1234567.