From 07c628c7e9f813efc3f7e1785f667e08f2340d53 Mon Sep 17 00:00:00 2001 From: astaxie Date: Thu, 6 Nov 2014 17:30:50 +0800 Subject: [PATCH] fix the commentsRouter init sequence --- parser.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parser.go b/parser.go index e7e324ba..bd673044 100644 --- a/parser.go +++ b/parser.go @@ -47,7 +47,7 @@ var ( genInfoList map[string][]ControllerComments ) -const COMMENTFL = "commentsRouter.go" +const COMMENTFL = "commentsRouter_" func init() { pkgLastupdate = make(map[string]int64) @@ -55,7 +55,7 @@ func init() { func parserPkg(pkgRealpath, pkgpath string) error { rep := strings.NewReplacer("/", "_", ".", "_") - commentFilename = rep.Replace(pkgpath) + "_" + COMMENTFL + commentFilename = COMMENTFL + rep.Replace(pkgpath) + ".go" if !compareFile(pkgRealpath) { Info(pkgRealpath + " don't has updated") return nil