The 2026 Way to Write Enums in Go

113 · Young Choi · July 7, 2026, 4:20 a.m.
Summary
The blog discusses how to create enums in Go using typed constant blocks and iota, highlighting a hidden bug in the process which had not been discovered in the author's previous post. Despite Go's lack of a dedicated enum keyword, the author shares their insights from running their previously suggested approach.