I would be astonished if there isn't an automated tool to check for that at the push of a button. I would be mildly surprised if there isn't a compiler flag to check for it.
% staticcheck test.go
test.go:7:2: this value of err is never used (SA4006)