mirror of
https://github.com/netbirdio/easyjson.git
synced 2026-05-22 18:44:42 -07:00
Merge pull request #105 from GSokol/master
package path with "." bug fix
This commit is contained in:
+6
-1
@@ -213,7 +213,12 @@ func fixPkgPathVendoring(pkgPath string) string {
|
||||
}
|
||||
|
||||
func fixAliasName(alias string) string {
|
||||
alias = strings.Replace(alias, "-", "", -1)
|
||||
alias = strings.Replace(
|
||||
strings.Replace(path.Base(pkgPath), ".", "_", -1),
|
||||
"-",
|
||||
"_",
|
||||
-1,
|
||||
)
|
||||
return alias
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user