package
0.0.0-20241104015319-85e10345cc4a
Repository: https://github.com/qida/gohp.git
Documentation: pkg.go.dev
# Functions
AESGCMDecrypt decrypts ciphertext with the given key using AES in GCM mode.
AESGCMEncrypt encrypts plaintext with the given key using AES in GCM mode.
No description provided by the author
*
* 字节数组转字符串
* @description
* @param bytes要转换的数组
* @return string
**/.
Camel2Case 驼峰式写法转为下划线写法.
*
* 蛇形转驼峰
* @description xx_yy to XxYx xx_y_y to XxYY
* @param s要转换的字符串
* @return string
**/.
Case2Camel 下划线写法转为驼峰写法.
全角转半角.
Expand replaces {k} in template with match[k] or subs[atoi(k)] if k is not in match.
FirstRuneToLower converts first rune to lower case if necessary.
FirstRuneToUpper converts first rune to upper case if necessary.
No description provided by the author
No description provided by the author
IsLetter returns true if the 'l' is an English letter.
Lcfirst 首字母小写.
No description provided by the author
NewTrie returns a Trie.
=========================.
RandomCreateBytes generate random []byte by specify chars.
No description provided by the author
Reverse s string, support unicode.
No description provided by the author
Shuffle randomizes runes in a string and returns the result.
ShuffleSource randomizes runes in a string with given random source.
*
* 驼峰转蛇形 snake string
* @description XxYy to xx_yy , XxYY to xx_y_y
* @param s 需要转换的字符串
* @return string
**/.
*
* 字符串转字节数组
* @description
* @param s要转换的字符串
* @return string
**/.
No description provided by the author
No description provided by the author
*
*
*/.
按字节截取字符串 utf-8不乱码.
No description provided by the author
Successor returns the successor to string.
SwapCase will swap characters case from upper to lower or lower to upper.
ToCamelCase is to convert words separated by space, underscore and hyphen to camel case.
ToKebabCase can convert all upper case characters in a string to kebab case format.
ToSnakeCase can convert all upper case characters in a string to snake case format.
Ucfirst 首字母大写.
No description provided by the author
WithMask customizes a Trie with keywords masked as given mask char.
# Variables
No description provided by the author
# Structs
Buffer 内嵌bytes.Buffer,支持连写.
************************************** 驼峰json ***************************************/.
************************************** 下划线json ***************************************/.
# Interfaces
No description provided by the author
# Type aliases
No description provided by the author