add comments

This commit is contained in:
deepzz0
2017-08-08 20:59:45 +08:00
parent 19af9376cb
commit 487d35dae2
8 changed files with 26 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ type PutRet struct {
Key string `json:"key"`
}
// 进度条
func onProgress(fsize, uploaded int64) {
d := int(float64(uploaded) / float64(fsize) * 100)
if fsize == uploaded {
@@ -97,6 +98,7 @@ func FileDelete(name string) error {
return nil
}
// 修复路径
func getKey(name string) string {
ext := filepath.Ext(name)
var key string