Toggle ‘declared and not used’ errors in Go by using idiomatic _ = notUsedVar
and leaving a TODO comment.
gouse
is required.
go install github.com/looshch/gouse@latest
“gouse: Toggle ‘declared and not used’ errors” command toggles the errors in a file.