1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-23 07:30:50 +00:00

Fixed router fileName error in window

This commit is contained in:
ysqi 2016-05-05 19:28:09 +08:00
parent 77ff15ee33
commit 8210fd12d1

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")