Fixed router fileName error in window

This commit is contained in:
ysqi 2016-05-05 19:28:09 +08:00
parent 77ff15ee33
commit 8210fd12d1
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ func init() {
}
func parserPkg(pkgRealpath, pkgpath string) error {
rep := strings.NewReplacer("/", "_", ".", "_")
rep := strings.NewReplacer("\\", "_", "/", "_", ".", "_")
commentFilename = coomentPrefix + rep.Replace(strings.Replace(pkgRealpath, AppPath, "", -1)) + ".go"
if !compareFile(pkgRealpath) {
Info(pkgRealpath + " no changed")