Rename tool to util.

This commit is contained in:
zicla
2019-04-26 03:01:40 +08:00
parent ce84a9c9f0
commit aed1ee2001
28 changed files with 104 additions and 104 deletions

View File

@ -12,7 +12,7 @@ import (
"strconv"
"strings"
"tank/code/result"
"tank/code/tool"
"tank/code/util"
"time"
)
@ -266,7 +266,7 @@ func DownloadFile(
var ctype string
if !haveType {
//使用mimeUtil来获取mime
ctype = tool.GetFallbackMimeType(filename, "")
ctype = util.GetFallbackMimeType(filename, "")
if ctype == "" {
// read a chunk to decide between utf-8 text and binary
var buf [sniffLen]byte