Update generator.go

This commit is contained in:
Vasily Romanov
2017-03-28 23:41:39 +03:00
committed by GitHub
parent 6ff42ffddb
commit b2a1344d91
+5 -5
View File
@@ -213,11 +213,11 @@ func fixPkgPathVendoring(pkgPath string) string {
}
func fixAliasName(alias string) string {
alias := strings.Replace(
strings.Replace(path.Base(pkgPath), ".", "_", -1),
"-",
"_",
-1,
alias = strings.Replace(
strings.Replace(path.Base(pkgPath), ".", "_", -1),
"-",
"_",
-1,
)
return alias
}