upload

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

* * @Author: TheLife * @Date: 2020-2-25 9:00 下午

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckFileExt

func CheckFileExt(fileName string, exts *[]string) bool

判断一个文件的拓展名是否在切片内

func RandFileName

func RandFileName(name string) string

使用md5随机生成一个文件名

func ReadyDir

func ReadyDir(src string) error

就绪一个文件夹

Types

type File

type File struct {
	Error error
	Url   string
	Save  string
}

type FileAttribute

type FileAttribute struct {
	Key     string
	Exts    []string
	DirPath string
	MaxSize int64
}

Directories

Path Synopsis
* * @Author: TheLife * @Date: 2020-2-25 9:00 下午
* * @Author: TheLife * @Date: 2020-2-25 9:00 下午
* * @Author: TheLife * @Date: 2020-2-25 9:00 下午
* * @Author: TheLife * @Date: 2020-2-25 9:00 下午

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL