mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-11 23:40:57 +00:00
[Go] Fix namespaces on enums (#5406)
This commit is contained in:
committed by
Robert Winslow
parent
a7e20b1996
commit
a6be1d0d74
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user