Re:Safer Enums in Go
by Splizard on Saturday May 14, 2022 @11:55AM
(#31379198)
Enum supports an exhaustive Switch as well, here's an example based on the blog post:
https://go.dev/play/p/Ef78vLyw33g
[ Parent
| on HN ]
There are no comments on this comment yet.