How to declare enums in golang?

I never said that. I said “You can’t” and showed the use of iota as a more idiomatic approach, nothing more, nothing less.