summaryrefslogtreecommitdiff
path: root/src/idl_gen_go.cpp
diff options
context:
space:
mode:
authorJohn Luxford <john@flipsidexr.com>2019-06-13 22:25:03 -0500
committerRobert Winslow <rw@users.noreply.github.com>2019-06-13 20:25:03 -0700
commita6be1d0d749ebf27ecddc423b6a30fc841699c0a (patch)
treec234f2fc47b6e6fd98f50053bd850d7b2d306f17 /src/idl_gen_go.cpp
parenta7e20b1996f08bc8a4600acc9957b69b88d86e3d (diff)
downloadflatbuffers-a6be1d0d749ebf27ecddc423b6a30fc841699c0a.tar.gz
flatbuffers-a6be1d0d749ebf27ecddc423b6a30fc841699c0a.tar.bz2
flatbuffers-a6be1d0d749ebf27ecddc423b6a30fc841699c0a.zip
[Go] Fix namespaces on enums (#5406)
Diffstat (limited to 'src/idl_gen_go.cpp')
-rw-r--r--src/idl_gen_go.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/idl_gen_go.cpp b/src/idl_gen_go.cpp
index f4f5701e..2be00767 100644
--- a/src/idl_gen_go.cpp
+++ b/src/idl_gen_go.cpp
@@ -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.