[Go] Fix namespaces on enums (#5406)

This commit is contained in:
John Luxford
2019-06-13 22:25:03 -05:00
committed by Robert Winslow
parent a7e20b1996
commit a6be1d0d74
2 changed files with 5 additions and 5 deletions

View File

@@ -143,7 +143,7 @@ class GoGenerator : public BaseGenerator {
// Construct the name of the type for this enum.
std::string GetEnumTypeName(const EnumDef &enum_def) {
return WrapInNameSpaceAndTrack(cur_name_space_, GoIdentity(enum_def.name));
return WrapInNameSpaceAndTrack(enum_def.defined_namespace, GoIdentity(enum_def.name));
}
// Create a type for the enum values.