Closed as not planned
Description
On go1.19, A blank import of "errors" increases the binary size by ~15.5KiB due to the transitive dependency on reflectlite
.
The hard dependency occurs because of the program initialize variable for:
var errorType = reflectlite.TypeOf((*error)(nil)).Elem()
We could consider a trick similar to 419757
This is relevant since many packages depend on errors
only for errors.New
, and we should not expect those packages to force reflectlite
to be transitively linked in.