You're viewing a single thread.
All Comments
13 comments
As far as I was aware Go didn't have enums and this
const()
Pattern is just a weird thing people do because it behaves like an enum?
2 0 ReplyYou are correct, Go doesn’t have enums. The const thing is a widely accepted pattern for approximating enums.
4 0 Reply
13 comments
Scroll to top