Safer Enums in Go
https://npf.io/2022/05/safer-enums/ [npf.io]
2022-05-14 00:14
There’s no size difference between a string and a struct{ string } and it’s just as easy to read as a straight string. Because of the String() method, you can pass these values to %s etc in format strings and they’ll print out the name with no extra code or work.
source: L