Documentation ¶
Index ¶
- func BuildIntValueJson(kvs map[string]int) string
- func BuildJson(kvs map[string]string) string
- func CheckFileSize(file *os.File, limit int64) bool
- func CheckFileType(filePath string, exts ...string) bool
- func DownLoadFileByGet(url, savePath string) (string, error)
- func DownloadFileByPostFields(url, savePath string, fields map[string]string) (string, error)
- func DownloadFileByPostRawData(url, savePath string, rawData []byte) (string, error)
- func Get(url string) ([]byte, error)
- func GetRandomStr(len int) string
- func InArray(val interface{}, array interface{}) bool
- func PostFields(url string, fields map[string]string) ([]byte, error)
- func PostFiles(url string, files map[string]string) ([]byte, error)
- func PostFilesAndFields(url string, files map[string]string, fields map[string]string) ([]byte, error)
- func PostRawData(url string, data []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildIntValueJson ¶
func CheckFileType ¶
func DownloadFileByPostFields ¶
用于需要上传form表单下载文件的情况
func DownloadFileByPostRawData ¶
用于需要上传json串等数据下载文件的情况
func GetRandomStr ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.