Go lacks typed enums and sum types
Go has no typed enums or sum types, so invalid values slip in and variant data needs error-prone runtime checks.
Tier I · Proven The best-established problems.
6 public reports · first reported 5 March 2017 · last reported 18 December 2025
What's going wrong
Developers coming to Go repeatedly ask for typed enumerations and sum types, sometimes called discriminated unions.
AI-assisted: written with the help of AI from the reports. The idea report has the full summary.
In the idea report
- The full summary.
- The products the 6 reports are about, and how many came each month.
- Related problems.
No business has been found with this problem yet, so the report has no contacts. All sales are final — no refunds. Pricing.