Merge pull request #60 from moul/dev/jhayotte/gotype
get package name only for descriptor message typed
This commit is contained in:
commit
c750f5de81
@ -115,7 +115,10 @@ func isFieldRepeated(f *descriptor.FieldDescriptorProto) bool {
|
||||
}
|
||||
|
||||
func goTypeWithPackage(f *descriptor.FieldDescriptorProto) string {
|
||||
pkg := getPackageTypeName(*f.TypeName)
|
||||
pkg := ""
|
||||
if *f.Type == descriptor.FieldDescriptorProto_TYPE_MESSAGE {
|
||||
pkg = getPackageTypeName(*f.TypeName)
|
||||
}
|
||||
return goType(pkg, f)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user