Refactoring: rename pkg/base -> pkg/tool

This commit is contained in:
Unknwon
2017-04-05 09:05:40 -04:00
parent ba151eda0a
commit 6fbb984ebf
51 changed files with 253 additions and 254 deletions

View File

@@ -17,7 +17,7 @@ import (
"github.com/gogits/git-module"
"github.com/gogits/gogs/pkg/base"
"github.com/gogits/gogs/pkg/tool"
"github.com/gogits/gogs/pkg/setting"
"github.com/gogits/gogs/pkg/template/highlight"
)
@@ -145,7 +145,7 @@ func NewDiff(gitDiff *git.Diff) *Diff {
}
}
charsetLabel, err := base.DetectEncoding(buf.Bytes())
charsetLabel, err := tool.DetectEncoding(buf.Bytes())
if charsetLabel != "UTF-8" && err == nil {
encoding, _ := charset.Lookup(charsetLabel)
if encoding != nil {