In Go Language Specification, I saw the definition of const. https://golang.org/ref/spec#Constant_declarations
ConstDecl = "const" ( ConstSpec <https://golang.org/ref/spec#ConstSpec> | "(" { ConstSpec <https://golang.org/ref/spec#ConstSpec> ";" } ")" ) .ConstSpec = IdentifierList <https://golang.org/ref/spec#IdentifierList> [ [ Type <https://golang.org/ref/spec#Type> ] "=" ExpressionList <https://golang.org/ref/spec#ExpressionList> ] . I think, second line might be ConstSpec = IdentifierList <https://golang.org/ref/spec#IdentifierList> [ Type <https://golang.org/ref/spec#Type> ] "=" ExpressionList <https://golang.org/ref/spec#ExpressionList> . because const declaration cannot omit value. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/4329ad70-c3a2-4021-918a-04b080ac2154%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.