Documentation ¶
Index ¶
- Variables
- func CheckDir(path string) bool
- func CheckFile(filename string) bool
- func GetFileSize(filePath string) (int64, error)
- func GetPath() string
- func MkdirDir(path string) error
- func RemoveDir(filePath string) error
- func Unzip(zipFile, destDir string) error
- func UploadFile(file *multipart.FileHeader, path string) (string, error)
- func Zip(srcFile string, destZip string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ApiRoot string
ApiRoot 当前项目根目录
Functions ¶
func UploadFile ¶
func UploadFile(file *multipart.FileHeader, path string) (string, error)
UploadFile 创建文件并生产目录
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.