fix protoc-gen-micro
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
c9b283be60
commit
47d007c0b6
@ -1246,7 +1246,7 @@ func (g *Generator) generateImports() {
|
|||||||
g.P("import (")
|
g.P("import (")
|
||||||
g.P(g.Pkg["fmt"] + ` "fmt"`)
|
g.P(g.Pkg["fmt"] + ` "fmt"`)
|
||||||
g.P(g.Pkg["math"] + ` "math"`)
|
g.P(g.Pkg["math"] + ` "math"`)
|
||||||
g.P(g.Pkg["proto"]+" ", GoImportPath(g.ImportPrefix)+"github.com/golang/protobuf/proto")
|
g.P(g.Pkg["proto"]+" ", GoImportPath(g.ImportPrefix)+"google.golang.org/protobuf/proto")
|
||||||
for importPath, packageName := range imports {
|
for importPath, packageName := range imports {
|
||||||
g.P(packageName, " ", GoImportPath(g.ImportPrefix)+importPath)
|
g.P(packageName, " ", GoImportPath(g.ImportPrefix)+importPath)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user