package
0.0.0-20230529124418-512269d081cf
Repository: https://github.com/alexz33/utils.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
EncodePassword.
Equals 比较两个字符串是否相等.
EqualsIgnoreCase 比较两个字符串是否相等,忽略大小写.
GetRandomStr 生成随机字符串.
No description provided by the author
IsBlank checks if a string is whitespace or empty ("").
IsEmpty checks if a string is empty ("").
No description provided by the author
IsNotEmpty checks if a string is not empty ("").
IsPalindrome 判断字符串是否是回文(reports whether s reads the same forward and backward).
No description provided by the author
IsPalindrome3 判断字符串是否是回文(reports whether s reads the same forward and backward) 忽略大小写和非字母 Letter case is ignored, as are non-letters.
LongestPalindromes Longest Palindromic Substring 最长回文子串 Given a string s, find the longest palindromic substring in s.
RuneAt 字符串第n个字符.
RuneFirstAt 字符串第一个字符.
RuneLastAt 字符串最后一个字符.
RuneLen 字符成长度.
StringJoin 字符串拼接.
SubStr 截取字符串 截取下标[start,end]的字符串.
SubStrLen 截取下标start开始length长度的字符串.
ToCamel 下划线转驼峰.
ToCamelLower 下划线转驼峰,首字母小写.
ToCamelUpper 下划线转驼峰,首字母大写.
ToInt str to int, if error return 0 str: 字符串.
No description provided by the author
ToInt64ByDefault 将字符串转换为int64 str: 字符串 def: 转化失败时候使用默认值.
ToIntByDefault 将字符串转换为int str: 字符串 def: 转化失败时候使用默认值.
ToUnderline 驼峰转下划线.
ValidatePassword.