mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 09:00:55 +00:00
fix a spelling mistake
This commit is contained in:
parent
9cafbf6a21
commit
a5a6546b91
@ -49,7 +49,7 @@ var (
|
|||||||
genInfoList map[string][]ControllerComments
|
genInfoList map[string][]ControllerComments
|
||||||
)
|
)
|
||||||
|
|
||||||
const coomentPrefix = "commentsRouter_"
|
const commentPrefix = "commentsRouter_"
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
pkgLastupdate = make(map[string]int64)
|
pkgLastupdate = make(map[string]int64)
|
||||||
@ -58,7 +58,7 @@ func init() {
|
|||||||
func parserPkg(pkgRealpath, pkgpath string) error {
|
func parserPkg(pkgRealpath, pkgpath string) error {
|
||||||
rep := strings.NewReplacer("\\", "_", "/", "_", ".", "_")
|
rep := strings.NewReplacer("\\", "_", "/", "_", ".", "_")
|
||||||
commentFilename, _ = filepath.Rel(AppPath, pkgRealpath)
|
commentFilename, _ = filepath.Rel(AppPath, pkgRealpath)
|
||||||
commentFilename = coomentPrefix + rep.Replace(commentFilename) + ".go"
|
commentFilename = commentPrefix + rep.Replace(commentFilename) + ".go"
|
||||||
if !compareFile(pkgRealpath) {
|
if !compareFile(pkgRealpath) {
|
||||||
logs.Info(pkgRealpath + " no changed")
|
logs.Info(pkgRealpath + " no changed")
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user