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

i find it pretty annoying to create fake variable usages for unused variables in go. I made a cli [1] tool for toggling ‘declared and not used’ errors in go on and off, so when you’re messing around with code and end up with a few unused variables here and there, you can run code through the tool and it will create fake usages for you. Running the code again will return the same code but with fake usages removed. I thought it might be useful for someone and i posted it on reddit and the mailing list, no one found it useful. I also made a vs code [2] extension as an example of integrating the tool with an ide thinking this might help others build a simple wrapper for their editor

[1] https://github.com/looshch/gouse [2] https://github.com/looshch/gouse-vsc

edit: last word was missing



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

Search: