You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Const structs could provide a simple may to implement type-safe enums. e.g
type T struct { value int }
const (
A T = T{iota};
B;
C
)
Currently, compiler complains that T{iota} is not a constant expression.