3 ms·
> Go does absolutely nothing to ensure you handle the error. Go has many community linters available, https://github.com/kisielk/errcheck https://github.com/ki
by shazow 7y ago
> Go does absolutely nothing to ensure you handle the error.
Go has many community linters available, https://github.com/kisielk/errcheck https://github.com/kisielk/errcheck is popular for checking unhandled errors.
If you'd like a combo-pack, check out https://github.com/golangci/golangci-lint https://github.com/golangci/golangci-lint which includes all of the popular linters in a configurable way.
- apta 7y agoThose linters won't catch everything. There are cases that will slip by. Rust's error handling, as well as exceptions are both strictly superior to golang's error handling.