mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 17:21:02 +00:00
Fixed router fileName error in window
This commit is contained in:
parent
77ff15ee33
commit
8210fd12d1
@ -56,7 +56,7 @@ func init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func parserPkg(pkgRealpath, pkgpath string) error {
|
func parserPkg(pkgRealpath, pkgpath string) error {
|
||||||
rep := strings.NewReplacer("/", "_", ".", "_")
|
rep := strings.NewReplacer("\\", "_", "/", "_", ".", "_")
|
||||||
commentFilename = coomentPrefix + rep.Replace(strings.Replace(pkgRealpath, AppPath, "", -1)) + ".go"
|
commentFilename = coomentPrefix + rep.Replace(strings.Replace(pkgRealpath, AppPath, "", -1)) + ".go"
|
||||||
if !compareFile(pkgRealpath) {
|
if !compareFile(pkgRealpath) {
|
||||||
Info(pkgRealpath + " no changed")
|
Info(pkgRealpath + " no changed")
|
||||||
|
Loading…
Reference in New Issue
Block a user