mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 18:20:54 +00:00
parse for github.com replace the . to _
This commit is contained in:
parent
8b747f54bc
commit
9d4ec508bb
@ -53,7 +53,8 @@ func init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func parserPkg(pkgRealpath, pkgpath string) error {
|
func parserPkg(pkgRealpath, pkgpath string) error {
|
||||||
commentFilename = strings.Replace(pkgpath, "/", "_", -1) + "_" + commentFilename
|
rep := strings.NewReplacer("/", "_", ".", "_")
|
||||||
|
commentFilename = rep.Replace(pkgpath) + "_" + commentFilename
|
||||||
if !compareFile(pkgRealpath) {
|
if !compareFile(pkgRealpath) {
|
||||||
Info(pkgRealpath + " don't has updated")
|
Info(pkgRealpath + " don't has updated")
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user