package
2.1.1+incompatible
Repository: https://github.com/luyingjie/utils.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
No description provided by the author
Package fileinfo provides virtual os.FileInfo for given information.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
ComparatorByte provides a basic comparison on byte.
ComparatorFloat32 provides a basic comparison on float32.
ComparatorFloat64 provides a basic comparison on float64.
ComparatorInt provides a basic comparison on int.
ComparatorInt16 provides a basic comparison on int16.
ComparatorInt32 provides a basic comparison on int32.
ComparatorInt64 provides a basic comparison on int64.
ComparatorInt8 provides a basic comparison on int8.
ComparatorRune provides a basic comparison on rune.
ComparatorString provides a fast comparison on strings.
ComparatorTime provides a basic comparison on time.Time.
ComparatorUint provides a basic comparison on uint.
ComparatorUint16 provides a basic comparison on uint16.
ComparatorUint32 provides a basic comparison on uint32.
ComparatorUint64 provides a basic comparison on uint64.
ComparatorUint8 provides a basic comparison on uint8.
DeepCopy 深克隆.
DelFile : 删除文件.
DownloadFile : download file会将url下载到本地文件,它会在下载时写入,而不是将整个文件加载到内存中。 将数据流式传输到文件中,而不必将其全部加载到内存中, 因此大文件比较适合。.
Dump prints variables <i...> to stdout with more manually readable.
Export returns variables <i...> as a string with more manually readable.
No description provided by the author
No description provided by the author
GetBase64 : 将客户端的url转成base64.
GetFile : 获取文件.
获取目录下的文件列表.
GetFileSize : 获取文件大小.
No description provided by the author
InArray 判断一个变量是否在目标中,目标可能是切片,数组或者map。.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MapDeepCopy Map深克隆.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MultipartUpload : 分块上传文件.
No description provided by the author
No description provided by the author
将字符串加密成MD5.
判断一个文件是否存在.
保存文件.
将文件和表单发送出去, 返回服务器的返回body。 表单参数部分未测试。.
No description provided by the author
SilenceDelFile : 静默删除文件.
No description provided by the author
No description provided by the author
No description provided by the author
TimeToString transforms given time to string.
将一个MD5字串解密。.
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
Comparator is a function that compare a and b, and returns the result as int.