From 8210fd12d17ce5e5e9e2d88f2d718b1d5d482855 Mon Sep 17 00:00:00 2001 From: ysqi Date: Thu, 5 May 2016 19:28:09 +0800 Subject: [PATCH] Fixed router fileName error in window --- parser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser.go b/parser.go index b19b2705..4d5b5653 100644 --- a/parser.go +++ b/parser.go @@ -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")