Commit 950ff91d authored by astaxie's avatar astaxie

hotfix for parsefiel

parent b43401b9
...@@ -42,11 +42,13 @@ func init() { ...@@ -42,11 +42,13 @@ func init() {
var ( var (
lastupdateFilename string = "lastupdate.tmp" lastupdateFilename string = "lastupdate.tmp"
commentFilename string = "commentsRouter.go" commentFilename string
pkgLastupdate map[string]int64 pkgLastupdate map[string]int64
genInfoList map[string][]ControllerComments genInfoList map[string][]ControllerComments
) )
const COMMENTFL = "commentsRouter.go"
func init() { func init() {
pkgLastupdate = make(map[string]int64) pkgLastupdate = make(map[string]int64)
genInfoList = make(map[string][]ControllerComments) genInfoList = make(map[string][]ControllerComments)
...@@ -54,7 +56,7 @@ func init() { ...@@ -54,7 +56,7 @@ func init() {
func parserPkg(pkgRealpath, pkgpath string) error { func parserPkg(pkgRealpath, pkgpath string) error {
rep := strings.NewReplacer("/", "_", ".", "_") rep := strings.NewReplacer("/", "_", ".", "_")
commentFilename = rep.Replace(pkgpath) + "_" + commentFilename commentFilename = rep.Replace(pkgpath) + "_" + COMMENTFL
if !compareFile(pkgRealpath) { if !compareFile(pkgRealpath) {
Info(pkgRealpath + " don't has updated") Info(pkgRealpath + " don't has updated")
return nil return nil
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment