# Functions
ArrayContains array中是否存在指定数据.
ArrayContainsNums 统计连个数组中相同值的个数.
No description provided by the author
No description provided by the author
Byte2Int 从[]byte中读取长度(小端).
BytesMerger 合并[]byte.
CleanFile 清空文件.
CommandContext 执行命令 默认超时时间60秒.
ConfigViper 读指定位置配置文件.
ContainsDuplicate 检测数组是否包含重复元素 重复返回true.
CreateMutiDir 调用os.MkdirAll递归创建文件夹.
FileExistNotDir FileExists 检查文件是否存在,并且不是目录.
FileIsExist 判断文件夹或文件是否存在, true为存在.
FileListFromPath 获取文件夹下文件列表,支持通配符*.
FileModTime 获取文件修改时间 返回unix时间戳.
FilePathInfo return 目录,文件名,后缀.
FilesAndDirs 获取指定目录下的所有文件和目录,不包含子目录.
FileSize 获取文件大小.
FindAllFiles 获取指定目录下的所有文件,包含子目录下的文件.
FindLineIndex 根据关键字查找字符串索引行 返回行号.
FindRegexGroup1 使用正则表达式regexStr在str中查找内容.
GetMaxValue 获取最大值.
GetMinValue 获取最小值.
GetNumberValueArray 从字符串数组中获取数字,取数组[0],没有数字会报错.
No description provided by the author
Int2Byte 将int写入指定长度的[]byte(小端).
IsExist 判断文件夹或文件是否存在.
IsFile 判断是文件还是目录.
No description provided by the author
No description provided by the author
Len 字符串长度,汉字算1个.
NotValue 当input不等于指定值时返回默认值defaultVal.
Or 当input为空值时返回默认值default.
OrValue 当input为指定值时返回默认值defaultVal.
PathFileExists 判断文件路径是否存在.
PathInfo 获取目录,文件名,后缀.
Random 随机制定长度[]byte,主要用于产生对称key.
No description provided by the author
ReadLine 读取指定行的内容 0行开始.
RemoveRepeatedElement 删除重复元素.
ReplaceFileContent 使用正则表达式查找模式,并且替换正则1号捕获分组为指定的内容.
ReplaceFileKeywords 字符串替换,并且替换正则1号捕获分组为指定的内容.
ReplaceRegexGroup1 使用正则表达式regexStr在str中查找内容,并且替换正则1号捕获分组为指定的内容.
SearchFileContent 使用正则表达式查找模式正则1号捕获分组.
SearchPatternLines 使用正则表达式boundaryRegexStr在str中查找大块, 然后在大块中用captureGroup1Regex中的每行寻找匹配.
SearchPatternLinesInFile 使用正则表达式boundaryRegexStr在文件filename中查找大块, 然后在大块中用captureGroup1Regex中的每行寻找匹配.
SelfPath 获取当前目录.
No description provided by the author
StartTimer cycle 天之后的 hour 点执行.
StringPrefixEqualCount 判断连续相同的字符串个数.
StripUnprintable 仅使用可见字符.
TimeFormat 格式化时间,参数为空时,默认格式化为 200601021504.
TrimValueFromArray 去除数组中指定元素.
UnZip password值可以为空"" 当decompressPath值为"./"时,解压到相对路径.
No description provided by the author
Zip password值可以为空"".