Documentation ¶
Overview ¶
Package helper 通用的帮助方法
Index ¶
- func AesDecrypt(path string, key []byte, iv [aes.BlockSize]byte) error
- func AesDecryptRecursion(path string, key []byte, iv [aes.BlockSize]byte) error
- func AesEncrypt(path string, key []byte, iv [aes.BlockSize]byte) error
- func FileTime(info os.FileInfo) (string, string, string)
- func HttpGet(client *http.Client, reqUrl string, reval any) error
- func HttpPostFile(client *http.Client, path string, reqUrl string, reval any) error
- func HttpPostForm(client *http.Client, reqUrl string, reqValue url.Values, reval any) error
- func Int64SliceToStringSlice(val []int64) []string
- func PathSeparatorFormat(s string) string
- func SplitFile(path string) (md5s []string, tmps []string, clean func() error, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesDecrypt ¶
AesDecrypt 解密单个文件,解密前请确保文件有[aes_ofb]前缀
func AesDecryptRecursion ¶
AesDecryptRecursion 递归解密文件
func AesEncrypt ¶
AesEncrypt 加密单个文件,加密后文件会多一个[aes_ofb]的前缀
func HttpPostFile ¶
HttpPostFile Post上传文件
func HttpPostForm ¶
HttpPostForm post请求资源,将reval对象传入进行序列化,然后返回
func Int64SliceToStringSlice ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.