KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Here is a test Go program: package main import fmt "fmt" func main () { ex := "moo cow\n"; fmt.Print (ex) } With the semicolon, it compiles. However, if the semicolon is removed, it doesn't: string.go:5: syntax error near fmt Any ideas? Update (March 2012) : Newer Go releases are able to compile both forms (with and without the semicolon).
Tags (comma-separated)
Save Edits
Cancel