package
0.0.0-20230529124418-512269d081cf
Repository: https://github.com/alexz33/utils.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
CloseOnExec makes sure closing the file on process forking.
CopyDir copy directory from src to dst.
No description provided by the author
CropImage 居中裁剪图片.
FileExt 获取文件后缀名.
FileType return image or file 根据后缀名区分文件是 file 还是 image.
No description provided by the author
GetExts 获取文档类型对应的扩展名.
GetFileMD5 获取文件MD5值.
GetImageSize 获取图片宽高信息.
IsDocument 是否是文档.
IsImage 判断文件是否是图片.
No description provided by the author
LoadFile 读取文件内容.
LoadJsonToObject 读取json文件.
NewFileIOSelector create a new file io selector.
PathExists check if the directory or file exits.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

FilePerm default permission of the newly created log file.

# Variables

ErrInvalidFsize invalid file size.

# Structs

FileIOSelector represents using standard file I/O.

# Interfaces

IOSelector io selector for fileio and mmap, used by wal and value log right now.