For loop problem with an array (slice?) of strings

Trying to set up some dummy data for a test case and the for loop croaks.

prog.go:19: syntax error: missing { after for clause

http://play.golang.org/p/Ni3cLLIpqm

http://play.golang.org/p/j7Db9Kj0iJ is what you intended?

Doh! I was a little short on sleep when I posted this. Should have waited. Thanks.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.