I was really confused by this error for ~10 minutes or so.  Usually when
this happens to me, I missed a closing/opening brace somewhere or I forgot
to add () after my anonymous function declaration to actually run it.

This time though all the braces were lining up and I had () there
appropriately.  I finally gave up on that error and started working on the
next one and when I looked there (using if instead of for with the range
operator) I realized I had a bug fixed it and my first error went away too.

Not sure if this is anything to be too worried about, but I found it
confusing and wasn't sure if this was worth a bug report or not.

It's easily reproducible: https://play.golang.org/p/DJKZqMtng4S

Change line 13 from if to for and everything works.

Great project/language, thanks for everyone's work on it!

-- 
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/CAD53Lr7%3Dki_tvkNp%2B5MFkDquF1rvvtW62BJmSSpQk7W4tQh6Jw%40mail.gmail.com.

Reply via email to