Pada tanggal Kam, 23 Apr 2020 21.30, Matthew Zimmerman <[email protected]> menulis:
> 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 > > After reading several sentences, I just click the link and can't figured out where the mistake was, and then I read your full email to realize where the error was. Here is another example of confusing error message that I found just today, https://play.golang.org/p/IF5ok20m4X0 You may find the mistake easily by first glance. Usually error like this happen if you have many lines of code with static string here and there, and one single typo. -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAMh9%2BYCP2NPyWYU56OGp4kMjs15-pFW0GkXhj1OLp_xsZxhyvA%40mail.gmail.com.
