1
0
mirror of https://github.com/astaxie/beego.git synced 2024-06-04 05:03:32 +00:00

parse for github.com replace the . to _

This commit is contained in:
astaxie 2014-11-04 10:19:30 +08:00
parent 8b747f54bc
commit 9d4ec508bb

View File

@ -53,7 +53,8 @@ func init() {
}
func parserPkg(pkgRealpath, pkgpath string) error {
commentFilename = strings.Replace(pkgpath, "/", "_", -1) + "_" + commentFilename
rep := strings.NewReplacer("/", "_", ".", "_")
commentFilename = rep.Replace(pkgpath) + "_" + commentFilename
if !compareFile(pkgRealpath) {
Info(pkgRealpath + " don't has updated")
return nil