package
0.0.0-20220908082318-a00ab9601e1c
Repository: https://github.com/cilidm/toolbox.git
Documentation: pkg.go.dev
# Functions
Array2Str 数组转字符串 逗号分割.
CopyFields 用b的所有字段覆盖a的 如果fields不为空, 表示用b的特定字段覆盖a的 a应该为结构体指针.
FromBytes converts the specified byte array to a string.
No description provided by the author
No description provided by the author
GetRandomString 生成随机字符串.
IsContain 判断字符串是否在数组里.
No description provided by the author
No description provided by the author
LCS gets the longest common substring of s1 and s2.
No description provided by the author
No description provided by the author
Struct2Map 结构体转map gorm Updates不会更新结构体里的0及空,需转换成map 此方法不适用此情景,更新为Struct2MapByTag.
No description provided by the author
ToBytes Bytes converts the specified str to a byte array.