2
0

Use std errors instead of golang.org/x/xerrors

New error functionality was introduced in Go 1.13. pgconn only
officially supports 1.15+. Transitional xerrors package can now be
removed.
This commit is contained in:
Jack Christensen
2021-03-06 14:45:33 -06:00
parent 3b0400a0d4
commit cf5894e092
6 changed files with 13 additions and 16 deletions
+1 -2
View File
@@ -2,13 +2,12 @@ package pgconn
import (
"context"
"errors"
"fmt"
"net"
"net/url"
"regexp"
"strings"
errors "golang.org/x/xerrors"
)
// SafeToRetry checks if the err is guaranteed to have occurred before sending any data to the server.