The github.com/pkg/errors project has been archived and is no longer maintained. Since this is used for error wrapping, which is provided by the standard Go libraries since Go 1.13, I suggest avoiding using the GitHub errors package and using the standard Go libraries instead:
The github.com/pkg/errors project has been archived and is no longer maintained. Since this is used for error wrapping, which is provided by the standard Go libraries since Go 1.13, I suggest avoiding using the GitHub errors package and using the standard Go libraries instead:
https://go.dev/blog/go1.13-errors