Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
Description
Currently, the generated Go enums' String() method returns "<UNSET>", when its value is unknown, by the return statement at the end of the function. For reasons unknown to me, this causes all enums in my debugger to have the value "<UNSET>", even though they do have a proper value.
If I move the return statement up into a default case of the switch statement, everything seems to display perfectly in the debugger. It's a simple enough fix and I will submit a patch today.
Attachments
Issue Links
- links to