Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

A workaround: assign the unused variable to underscore.

  _ = myUnusedVar
Now you have used it.


That's smart, I never thought of that. Thanks!


I have a modified go compiler which ignores the unused variable rule. If you are interested, I can share it with you.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: