Now that we've bumped to Go version 1.13, we can make use of its features (particularly the added error API).
- Remove as much of internal/error.go as possible.
- When creating wrapped errors throughout the driver, use the new formatting directive %w where internal.WrappedError was used before.
- When examining wrapped errors in errors.go files, use errors.Is and errors.As instead of casting to "unwrappable" interfaces.
- Enable the errorlint linter and fix all errors.
- has to be done after
-
GODRIVER-2174 Bump the minimum Go version to 1.13
- Closed
- has to be done before
-
GODRIVER-2156 Enable all remaining golangci-lint linters and fix any identified issues
- Closed
- related to
-
GODRIVER-2646 Enable the "errlint" golangci-lint linter to check for "errors" API usage issues
- Backlog
-
GODRIVER-2721 Fully support "errors.Is" and "errors.As" in all stable public APIs
- Backlog
-
GODRIVER-2623 Use a clone of the http.DefaultTransport for the internal HTTP client.
- Closed
- scopes
-
GODRIVER-2952 Update context.Canceled equality comparisons to errors.Is
- Closed