# Functions
Bytes 将 string 转换为 []byte.
Capitalize convert first letter to upper and others remain.
ContainsAny returns true if s contains any specified substring.
No description provided by the author
CountNonEmpty 返回非空字符串的个数.
Cut slices s around the first instance of sep, returning the text before and after sep.
No description provided by the author
No description provided by the author
No description provided by the author
Diff 给出两个数组,返回二者的差异 返回值 1 为 cmp 比 base 增加的元素 返回值 2 为 cmp 比 base 减少的元素 这一函数的时间和空间复杂度均为 O(M+N).
No description provided by the author
FoldSpace replace any spaces (more than two) to one space.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ListToInt 将 []string 转换为 []int, 忽略前后空格.
ListToInterface 将 []string 转换为 []interface.
No description provided by the author
PopInStringList 如果元素在列表中,则返回 true 与删除元素后的列表,否则返回 false 与原列表.
RightPad 使用另一个字符串从右端填充字符串为指定长度。.
No description provided by the author
No description provided by the author
TrimEmptyLine 将字符串首尾的空行删除.
UnsafeToBytes 将 string 转换为 []byte,避免拷贝导致的内存开销 需要注意的是,如果试图对返回的 []byte 进行修改可能会导致程序直接崩溃.