mirror of
https://github.com/astaxie/beego.git
synced 2024-11-26 02:51:28 +00:00
fix the repeat commentsRouters
This commit is contained in:
parent
bb795847da
commit
1e92d17605
@ -51,7 +51,6 @@ const COMMENTFL = "commentsRouter.go"
|
|||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
pkgLastupdate = make(map[string]int64)
|
pkgLastupdate = make(map[string]int64)
|
||||||
genInfoList = make(map[string][]ControllerComments)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func parserPkg(pkgRealpath, pkgpath string) error {
|
func parserPkg(pkgRealpath, pkgpath string) error {
|
||||||
@ -61,6 +60,7 @@ func parserPkg(pkgRealpath, pkgpath string) error {
|
|||||||
Info(pkgRealpath + " don't has updated")
|
Info(pkgRealpath + " don't has updated")
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
genInfoList = make(map[string][]ControllerComments)
|
||||||
fileSet := token.NewFileSet()
|
fileSet := token.NewFileSet()
|
||||||
astPkgs, err := parser.ParseDir(fileSet, pkgRealpath, func(info os.FileInfo) bool {
|
astPkgs, err := parser.ParseDir(fileSet, pkgRealpath, func(info os.FileInfo) bool {
|
||||||
name := info.Name()
|
name := info.Name()
|
||||||
|
Loading…
Reference in New Issue
Block a user