mirror of
https://github.com/netbirdio/easyjson.git
synced 2026-05-22 18:44:42 -07:00
Update generator.go
This commit is contained in:
+5
-5
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user