Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
sethammons
on March 22, 2021
|
parent
|
context
|
favorite
| on:
The ecosystem of the Go programming language
A workaround: assign the unused variable to underscore.
_ = myUnusedVar
Now you have used it.
hbn
on March 22, 2021
[–]
That's smart, I never thought of that. Thanks!
jimmyed
on March 22, 2021
|
parent
[–]
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: