refactor: use go 1.13 error wrapping

This removes the github.com/pkg/errors package in favor of the official
error wrapping in go 1.13.

Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
This commit is contained in:
Andrew Rynhard
2019-10-16 04:50:06 +00:00
parent 94c28657d3
commit d430a37e46
90 changed files with 342 additions and 377 deletions

View File

@@ -87,7 +87,7 @@ func TestNthIPInNetwork(t *testing.T) {
t.Run(tt.name, func(t *testing.T) {
got, err := NthIPInNetwork(tt.args.network, tt.args.n)
if err != nil {
t.Errorf("%v", err)
t.Errorf("%w", err)
}
if !reflect.DeepEqual(got, tt.want) {