parse for github.com replace the . to _
Showing
1 changed file
with
2 additions
and
1 deletions
| ... | @@ -53,7 +53,8 @@ func init() { | ... | @@ -53,7 +53,8 @@ func init() { |
| 53 | } | 53 | } |
| 54 | 54 | ||
| 55 | func parserPkg(pkgRealpath, pkgpath string) error { | 55 | func parserPkg(pkgRealpath, pkgpath string) error { |
| 56 | commentFilename = strings.Replace(pkgpath, "/", "_", -1) + "_" + commentFilename | 56 | rep := strings.NewReplacer("/", "_", ".", "_") |
| 57 | commentFilename = rep.Replace(pkgpath) + "_" + commentFilename | ||
| 57 | if !compareFile(pkgRealpath) { | 58 | if !compareFile(pkgRealpath) { |
| 58 | Info(pkgRealpath + " don't has updated") | 59 | Info(pkgRealpath + " don't has updated") |
| 59 | return nil | 60 | return nil | ... | ... |
-
Please register or sign in to post a comment