Login
From:
Preslav Rachev
(Uncensored)
subscribe
Create Robust "Enums" in Go · Preslav Rachev
https://preslav.me/2023/03/17/create-robust-enums-in-golang/
links
backlinks
While Go doesn't have proper enums, you can create a more robust enum-like construct using interfaces and structs.
Roast topics
Find topics
Find it!