Let's say I have something like this:
const (
FOO int = iota
BAR
BAZ
)
And I can access to variables by FOO
, BAR
and so on. But storing a big amount of constants in one namespace isn't good so I'm trying to hide this enum in structure or something like that so I can get value by typing actions.FOO
in same namespace. I've tried many ways but didn't find anything like that. I would like to mention that easiest workaround, in this case, will be anonymous structure but I wanna keep auto indexing with iota
.