mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 11:50:55 +00:00
hotfix for parsefiel
This commit is contained in:
parent
b43401b9f6
commit
950ff91d87
@ -42,11 +42,13 @@ func init() {
|
||||
|
||||
var (
|
||||
lastupdateFilename string = "lastupdate.tmp"
|
||||
commentFilename string = "commentsRouter.go"
|
||||
commentFilename string
|
||||
pkgLastupdate map[string]int64
|
||||
genInfoList map[string][]ControllerComments
|
||||
)
|
||||
|
||||
const COMMENTFL = "commentsRouter.go"
|
||||
|
||||
func init() {
|
||||
pkgLastupdate = make(map[string]int64)
|
||||
genInfoList = make(map[string][]ControllerComments)
|
||||
@ -54,7 +56,7 @@ func init() {
|
||||
|
||||
func parserPkg(pkgRealpath, pkgpath string) error {
|
||||
rep := strings.NewReplacer("/", "_", ".", "_")
|
||||
commentFilename = rep.Replace(pkgpath) + "_" + commentFilename
|
||||
commentFilename = rep.Replace(pkgpath) + "_" + COMMENTFL
|
||||
if !compareFile(pkgRealpath) {
|
||||
Info(pkgRealpath + " don't has updated")
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user