const mapArch = map[string] string {
"foo": "1",
"bar": "2",
}
Go only allows numbers & strings to be const'ed.
spoo and oops are being declared using constant declarations. A
constant declaration permits using a constant expression. A constant
expression permits any constant operand. In the expression
"int(spoo)", "spoo" is a constant operand by definition, because it is
declared using a const declaration. That alternative is explicitly
listed in the "Constants" section: "an identifier denoting a
constant." So it all seems more or less OK to me.
Ian