Don't mangle RPC package names

This commit is contained in:
joeduffy 2017-04-28 12:42:31 -07:00
parent 1489a73b18
commit 77fc639286

View file

@ -90,7 +90,7 @@ func (g *RPCGenerator) EmitFile(file string, pkg *Package, members []Member) err
emitHeaderWarning(w)
// Now emit the package name at the top-level.
writefmtln(w, "package %vrpc", pkg.Name)
writefmtln(w, "package %v", pkg.Pkginfo.Pkg.Name())
writefmtln(w, "")
// And all of the imports that we're going to need.