diff --git a/batch.go b/batch.go index 784cf97c..a2d0ad28 100644 --- a/batch.go +++ b/batch.go @@ -5,7 +5,7 @@ import ( "github.com/jackc/pgconn" "github.com/jackc/pgx/v4/pgtype" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type batchItem struct { diff --git a/conn.go b/conn.go index db56510d..496283dd 100644 --- a/conn.go +++ b/conn.go @@ -9,7 +9,7 @@ import ( "strings" "time" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" "github.com/jackc/pgconn" "github.com/jackc/pgproto3/v2" diff --git a/copy_from.go b/copy_from.go index f69ec584..a6536d2d 100644 --- a/copy_from.go +++ b/copy_from.go @@ -7,7 +7,7 @@ import ( "io" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) // CopyFromRows returns a CopyFromSource interface over the provided rows slice diff --git a/copy_from_test.go b/copy_from_test.go index 5313b48c..1eb3159c 100644 --- a/copy_from_test.go +++ b/copy_from_test.go @@ -9,7 +9,7 @@ import ( "github.com/jackc/pgconn" "github.com/jackc/pgx/v4" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) func TestConnCopyFromSmall(t *testing.T) { diff --git a/example_custom_type_test.go b/example_custom_type_test.go index ac286d24..f30c1b19 100644 --- a/example_custom_type_test.go +++ b/example_custom_type_test.go @@ -9,7 +9,7 @@ import ( "github.com/jackc/pgx/v4" "github.com/jackc/pgx/v4/pgtype" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) var pointRegexp *regexp.Regexp = regexp.MustCompile(`^\((.*),(.*)\)$`) diff --git a/logger.go b/logger.go index 528698b1..2e37afdb 100644 --- a/logger.go +++ b/logger.go @@ -4,7 +4,7 @@ import ( "encoding/hex" "fmt" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) // The values for log levels are chosen such that the zero value means that no diff --git a/pgmock/pgmock.go b/pgmock/pgmock.go index b1c505a4..deac5137 100644 --- a/pgmock/pgmock.go +++ b/pgmock/pgmock.go @@ -5,7 +5,7 @@ import ( "net" "reflect" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" "github.com/jackc/pgproto3/v2" "github.com/jackc/pgx/v4/pgtype" diff --git a/pgtype/aclitem.go b/pgtype/aclitem.go index a54955eb..c801eb83 100644 --- a/pgtype/aclitem.go +++ b/pgtype/aclitem.go @@ -3,7 +3,7 @@ package pgtype import ( "database/sql/driver" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) // ACLItem is used for PostgreSQL's aclitem data type. A sample aclitem diff --git a/pgtype/aclitem_array.go b/pgtype/aclitem_array.go index 2671022b..c8421153 100644 --- a/pgtype/aclitem_array.go +++ b/pgtype/aclitem_array.go @@ -3,7 +3,7 @@ package pgtype import ( "database/sql/driver" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type ACLItemArray struct { diff --git a/pgtype/array.go b/pgtype/array.go index 9ce0f003..69456782 100644 --- a/pgtype/array.go +++ b/pgtype/array.go @@ -9,7 +9,7 @@ import ( "unicode" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) // Information on the internals of PostgreSQL arrays can be found in diff --git a/pgtype/bool.go b/pgtype/bool.go index 22774970..f622061b 100644 --- a/pgtype/bool.go +++ b/pgtype/bool.go @@ -4,7 +4,7 @@ import ( "database/sql/driver" "strconv" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type Bool struct { diff --git a/pgtype/bool_array.go b/pgtype/bool_array.go index 1aefcd27..3dde8dc0 100644 --- a/pgtype/bool_array.go +++ b/pgtype/bool_array.go @@ -5,7 +5,7 @@ import ( "encoding/binary" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type BoolArray struct { diff --git a/pgtype/box.go b/pgtype/box.go index 4c825c56..ce5300e5 100644 --- a/pgtype/box.go +++ b/pgtype/box.go @@ -9,7 +9,7 @@ import ( "strings" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type Box struct { diff --git a/pgtype/bpchar_array.go b/pgtype/bpchar_array.go index dd4a8363..547b4e80 100644 --- a/pgtype/bpchar_array.go +++ b/pgtype/bpchar_array.go @@ -5,7 +5,7 @@ import ( "encoding/binary" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type BPCharArray struct { diff --git a/pgtype/bytea.go b/pgtype/bytea.go index 064f199a..e6c28dc7 100644 --- a/pgtype/bytea.go +++ b/pgtype/bytea.go @@ -4,7 +4,7 @@ import ( "database/sql/driver" "encoding/hex" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type Bytea struct { diff --git a/pgtype/bytea_array.go b/pgtype/bytea_array.go index fc07d103..369d6e08 100644 --- a/pgtype/bytea_array.go +++ b/pgtype/bytea_array.go @@ -5,7 +5,7 @@ import ( "encoding/binary" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type ByteaArray struct { diff --git a/pgtype/cidr_array.go b/pgtype/cidr_array.go index 62b0ca65..94c07679 100644 --- a/pgtype/cidr_array.go +++ b/pgtype/cidr_array.go @@ -6,7 +6,7 @@ import ( "net" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type CIDRArray struct { diff --git a/pgtype/circle.go b/pgtype/circle.go index a3bb56f1..66dec132 100644 --- a/pgtype/circle.go +++ b/pgtype/circle.go @@ -9,7 +9,7 @@ import ( "strings" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type Circle struct { diff --git a/pgtype/convert.go b/pgtype/convert.go index 5dfb738e..98999d45 100644 --- a/pgtype/convert.go +++ b/pgtype/convert.go @@ -5,7 +5,7 @@ import ( "reflect" "time" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) const maxUint = ^uint(0) diff --git a/pgtype/database_sql.go b/pgtype/database_sql.go index 969536dd..f54a750d 100644 --- a/pgtype/database_sql.go +++ b/pgtype/database_sql.go @@ -3,7 +3,7 @@ package pgtype import ( "database/sql/driver" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) func DatabaseSQLValue(ci *ConnInfo, src Value) (interface{}, error) { diff --git a/pgtype/date.go b/pgtype/date.go index 3f8d188a..08ba8c08 100644 --- a/pgtype/date.go +++ b/pgtype/date.go @@ -6,7 +6,7 @@ import ( "time" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type Date struct { diff --git a/pgtype/date_array.go b/pgtype/date_array.go index 6d6c0899..05070360 100644 --- a/pgtype/date_array.go +++ b/pgtype/date_array.go @@ -6,7 +6,7 @@ import ( "time" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type DateArray struct { diff --git a/pgtype/daterange.go b/pgtype/daterange.go index d10d34c0..40997bd9 100644 --- a/pgtype/daterange.go +++ b/pgtype/daterange.go @@ -4,7 +4,7 @@ import ( "database/sql/driver" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type Daterange struct { diff --git a/pgtype/enum_array.go b/pgtype/enum_array.go index 5de2badf..504d513c 100644 --- a/pgtype/enum_array.go +++ b/pgtype/enum_array.go @@ -3,7 +3,7 @@ package pgtype import ( "database/sql/driver" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type EnumArray struct { diff --git a/pgtype/ext/satori-uuid/uuid.go b/pgtype/ext/satori-uuid/uuid.go index 8713b4d6..2aebfc47 100644 --- a/pgtype/ext/satori-uuid/uuid.go +++ b/pgtype/ext/satori-uuid/uuid.go @@ -3,7 +3,7 @@ package uuid import ( "database/sql/driver" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" "github.com/jackc/pgx/v4/pgtype" uuid "github.com/satori/go.uuid" diff --git a/pgtype/ext/shopspring-numeric/decimal.go b/pgtype/ext/shopspring-numeric/decimal.go index 0b63999b..54612db9 100644 --- a/pgtype/ext/shopspring-numeric/decimal.go +++ b/pgtype/ext/shopspring-numeric/decimal.go @@ -4,7 +4,7 @@ import ( "database/sql/driver" "strconv" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" "github.com/jackc/pgx/v4/pgtype" "github.com/shopspring/decimal" diff --git a/pgtype/float4.go b/pgtype/float4.go index c4feb0a7..0947f36a 100644 --- a/pgtype/float4.go +++ b/pgtype/float4.go @@ -7,7 +7,7 @@ import ( "strconv" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type Float4 struct { diff --git a/pgtype/float4_array.go b/pgtype/float4_array.go index b14161e8..ef134407 100644 --- a/pgtype/float4_array.go +++ b/pgtype/float4_array.go @@ -5,7 +5,7 @@ import ( "encoding/binary" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type Float4Array struct { diff --git a/pgtype/float8.go b/pgtype/float8.go index 63944d45..87cf6adb 100644 --- a/pgtype/float8.go +++ b/pgtype/float8.go @@ -7,7 +7,7 @@ import ( "strconv" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type Float8 struct { diff --git a/pgtype/float8_array.go b/pgtype/float8_array.go index 60e87236..ba63449c 100644 --- a/pgtype/float8_array.go +++ b/pgtype/float8_array.go @@ -5,7 +5,7 @@ import ( "encoding/binary" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type Float8Array struct { diff --git a/pgtype/hstore.go b/pgtype/hstore.go index 8a84fe2a..522813ff 100644 --- a/pgtype/hstore.go +++ b/pgtype/hstore.go @@ -8,7 +8,7 @@ import ( "unicode" "unicode/utf8" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" "github.com/jackc/pgio" ) diff --git a/pgtype/hstore_array.go b/pgtype/hstore_array.go index 19d07686..1bdac816 100644 --- a/pgtype/hstore_array.go +++ b/pgtype/hstore_array.go @@ -5,7 +5,7 @@ import ( "encoding/binary" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type HstoreArray struct { diff --git a/pgtype/inet.go b/pgtype/inet.go index dfdd8868..0fb1c418 100644 --- a/pgtype/inet.go +++ b/pgtype/inet.go @@ -4,7 +4,7 @@ import ( "database/sql/driver" "net" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) // Network address family is dependent on server socket.h value for AF_INET. diff --git a/pgtype/inet_array.go b/pgtype/inet_array.go index 51ad7988..b31d3588 100644 --- a/pgtype/inet_array.go +++ b/pgtype/inet_array.go @@ -6,7 +6,7 @@ import ( "net" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type InetArray struct { diff --git a/pgtype/int2.go b/pgtype/int2.go index 72110684..bbf2952f 100644 --- a/pgtype/int2.go +++ b/pgtype/int2.go @@ -7,7 +7,7 @@ import ( "strconv" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type Int2 struct { diff --git a/pgtype/int2_array.go b/pgtype/int2_array.go index e3b9f64b..afb39513 100644 --- a/pgtype/int2_array.go +++ b/pgtype/int2_array.go @@ -5,7 +5,7 @@ import ( "encoding/binary" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type Int2Array struct { diff --git a/pgtype/int4.go b/pgtype/int4.go index 9ad878c4..cc34ce0a 100644 --- a/pgtype/int4.go +++ b/pgtype/int4.go @@ -8,7 +8,7 @@ import ( "strconv" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type Int4 struct { diff --git a/pgtype/int4_array.go b/pgtype/int4_array.go index ad75c4b5..bd0babb9 100644 --- a/pgtype/int4_array.go +++ b/pgtype/int4_array.go @@ -5,7 +5,7 @@ import ( "encoding/binary" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type Int4Array struct { diff --git a/pgtype/int4range.go b/pgtype/int4range.go index 67bbfcd2..03970ae6 100644 --- a/pgtype/int4range.go +++ b/pgtype/int4range.go @@ -4,7 +4,7 @@ import ( "database/sql/driver" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type Int4range struct { diff --git a/pgtype/int8.go b/pgtype/int8.go index 39b8a0a8..153f1f7d 100644 --- a/pgtype/int8.go +++ b/pgtype/int8.go @@ -8,7 +8,7 @@ import ( "strconv" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type Int8 struct { diff --git a/pgtype/int8_array.go b/pgtype/int8_array.go index ae8d8e0f..392fd47e 100644 --- a/pgtype/int8_array.go +++ b/pgtype/int8_array.go @@ -5,7 +5,7 @@ import ( "encoding/binary" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type Int8Array struct { diff --git a/pgtype/int8range.go b/pgtype/int8range.go index 25839a7b..0e0f1cdb 100644 --- a/pgtype/int8range.go +++ b/pgtype/int8range.go @@ -4,7 +4,7 @@ import ( "database/sql/driver" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type Int8range struct { diff --git a/pgtype/interval.go b/pgtype/interval.go index 9172e14a..a7edca83 100644 --- a/pgtype/interval.go +++ b/pgtype/interval.go @@ -9,7 +9,7 @@ import ( "time" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) const ( diff --git a/pgtype/json.go b/pgtype/json.go index 377a1546..49ff7a6c 100644 --- a/pgtype/json.go +++ b/pgtype/json.go @@ -4,7 +4,7 @@ import ( "database/sql/driver" "encoding/json" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type JSON struct { diff --git a/pgtype/jsonb.go b/pgtype/jsonb.go index c315c588..065e4e21 100644 --- a/pgtype/jsonb.go +++ b/pgtype/jsonb.go @@ -3,7 +3,7 @@ package pgtype import ( "database/sql/driver" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type JSONB JSON diff --git a/pgtype/line.go b/pgtype/line.go index 6ac4ac2a..617ee456 100644 --- a/pgtype/line.go +++ b/pgtype/line.go @@ -9,7 +9,7 @@ import ( "strings" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type Line struct { diff --git a/pgtype/lseg.go b/pgtype/lseg.go index c0e77799..b8d6e322 100644 --- a/pgtype/lseg.go +++ b/pgtype/lseg.go @@ -9,7 +9,7 @@ import ( "strings" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type Lseg struct { diff --git a/pgtype/macaddr.go b/pgtype/macaddr.go index 6854400b..25ffc48e 100644 --- a/pgtype/macaddr.go +++ b/pgtype/macaddr.go @@ -4,7 +4,7 @@ import ( "database/sql/driver" "net" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type Macaddr struct { diff --git a/pgtype/macaddr_array.go b/pgtype/macaddr_array.go index 2d0439e9..0b791104 100644 --- a/pgtype/macaddr_array.go +++ b/pgtype/macaddr_array.go @@ -6,7 +6,7 @@ import ( "net" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type MacaddrArray struct { diff --git a/pgtype/numeric.go b/pgtype/numeric.go index 887ad1f8..bbd7667a 100644 --- a/pgtype/numeric.go +++ b/pgtype/numeric.go @@ -9,7 +9,7 @@ import ( "strings" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) // PostgreSQL internal numeric storage uses 16-bit "digits" with base of 10,000 diff --git a/pgtype/numeric_array.go b/pgtype/numeric_array.go index ec892cc8..1e8c5cda 100644 --- a/pgtype/numeric_array.go +++ b/pgtype/numeric_array.go @@ -5,7 +5,7 @@ import ( "encoding/binary" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type NumericArray struct { diff --git a/pgtype/numrange.go b/pgtype/numrange.go index ff9d5372..f3e25109 100644 --- a/pgtype/numrange.go +++ b/pgtype/numrange.go @@ -4,7 +4,7 @@ import ( "database/sql/driver" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type Numrange struct { diff --git a/pgtype/oid.go b/pgtype/oid.go index 2afc60f8..593a5261 100644 --- a/pgtype/oid.go +++ b/pgtype/oid.go @@ -6,7 +6,7 @@ import ( "strconv" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) // OID (Object Identifier Type) is, according to diff --git a/pgtype/path.go b/pgtype/path.go index c1b72322..a4c6af77 100644 --- a/pgtype/path.go +++ b/pgtype/path.go @@ -9,7 +9,7 @@ import ( "strings" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type Path struct { diff --git a/pgtype/pgtype.go b/pgtype/pgtype.go index 4faf23e1..cea4e1cd 100644 --- a/pgtype/pgtype.go +++ b/pgtype/pgtype.go @@ -4,7 +4,7 @@ import ( "database/sql" "reflect" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) // PostgreSQL oids for common types diff --git a/pgtype/pguint32.go b/pgtype/pguint32.go index 37178b5c..21da9664 100644 --- a/pgtype/pguint32.go +++ b/pgtype/pguint32.go @@ -7,7 +7,7 @@ import ( "strconv" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) // pguint32 is the core type that is used to implement PostgreSQL types such as diff --git a/pgtype/point.go b/pgtype/point.go index fefe5d1f..89f2359b 100644 --- a/pgtype/point.go +++ b/pgtype/point.go @@ -9,7 +9,7 @@ import ( "strings" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type Vec2 struct { diff --git a/pgtype/polygon.go b/pgtype/polygon.go index 904e86e1..e739c71b 100644 --- a/pgtype/polygon.go +++ b/pgtype/polygon.go @@ -9,7 +9,7 @@ import ( "strings" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type Polygon struct { diff --git a/pgtype/qchar.go b/pgtype/qchar.go index 064dab1e..5e77dc38 100644 --- a/pgtype/qchar.go +++ b/pgtype/qchar.go @@ -4,7 +4,7 @@ import ( "math" "strconv" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) // QChar is for PostgreSQL's special 8-bit-only "char" type more akin to the C diff --git a/pgtype/range.go b/pgtype/range.go index 54fc6ca0..35b80ced 100644 --- a/pgtype/range.go +++ b/pgtype/range.go @@ -4,7 +4,7 @@ import ( "bytes" "encoding/binary" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type BoundType byte diff --git a/pgtype/record.go b/pgtype/record.go index 315deda5..60733016 100644 --- a/pgtype/record.go +++ b/pgtype/record.go @@ -4,7 +4,7 @@ import ( "encoding/binary" "reflect" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) // Record is the generic PostgreSQL record type such as is created with the diff --git a/pgtype/text.go b/pgtype/text.go index 648bbd58..4d4e6bb4 100644 --- a/pgtype/text.go +++ b/pgtype/text.go @@ -4,7 +4,7 @@ import ( "database/sql/driver" "encoding/json" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type Text struct { diff --git a/pgtype/text_array.go b/pgtype/text_array.go index 1556fec8..b590972e 100644 --- a/pgtype/text_array.go +++ b/pgtype/text_array.go @@ -5,7 +5,7 @@ import ( "encoding/binary" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type TextArray struct { diff --git a/pgtype/tid.go b/pgtype/tid.go index e859865b..ff788b84 100644 --- a/pgtype/tid.go +++ b/pgtype/tid.go @@ -8,7 +8,7 @@ import ( "strings" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) // TID is PostgreSQL's Tuple Identifier type. diff --git a/pgtype/timestamp.go b/pgtype/timestamp.go index 93383e35..40dfdac8 100644 --- a/pgtype/timestamp.go +++ b/pgtype/timestamp.go @@ -6,7 +6,7 @@ import ( "time" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) const pgTimestampFormat = "2006-01-02 15:04:05.999999999" diff --git a/pgtype/timestamp_array.go b/pgtype/timestamp_array.go index 1fd1eefe..95f76639 100644 --- a/pgtype/timestamp_array.go +++ b/pgtype/timestamp_array.go @@ -6,7 +6,7 @@ import ( "time" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type TimestampArray struct { diff --git a/pgtype/timestamptz.go b/pgtype/timestamptz.go index c2c91c29..752c1818 100644 --- a/pgtype/timestamptz.go +++ b/pgtype/timestamptz.go @@ -6,7 +6,7 @@ import ( "time" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) const pgTimestamptzHourFormat = "2006-01-02 15:04:05.999999999Z07" diff --git a/pgtype/timestamptz_array.go b/pgtype/timestamptz_array.go index b87238ae..7fe60d50 100644 --- a/pgtype/timestamptz_array.go +++ b/pgtype/timestamptz_array.go @@ -6,7 +6,7 @@ import ( "time" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type TimestamptzArray struct { diff --git a/pgtype/tsrange.go b/pgtype/tsrange.go index d771a761..54cc863f 100644 --- a/pgtype/tsrange.go +++ b/pgtype/tsrange.go @@ -4,7 +4,7 @@ import ( "database/sql/driver" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type Tsrange struct { diff --git a/pgtype/tstzrange.go b/pgtype/tstzrange.go index 9a8c782e..1cf2859d 100644 --- a/pgtype/tstzrange.go +++ b/pgtype/tstzrange.go @@ -4,7 +4,7 @@ import ( "database/sql/driver" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type Tstzrange struct { diff --git a/pgtype/uuid.go b/pgtype/uuid.go index 5e1eead5..d3e68f5c 100644 --- a/pgtype/uuid.go +++ b/pgtype/uuid.go @@ -5,7 +5,7 @@ import ( "encoding/hex" "fmt" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type UUID struct { diff --git a/pgtype/uuid_array.go b/pgtype/uuid_array.go index fac838af..1d28ee59 100644 --- a/pgtype/uuid_array.go +++ b/pgtype/uuid_array.go @@ -5,7 +5,7 @@ import ( "encoding/binary" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type UUIDArray struct { diff --git a/pgtype/varbit.go b/pgtype/varbit.go index 2c25b1fb..fe4db33d 100644 --- a/pgtype/varbit.go +++ b/pgtype/varbit.go @@ -5,7 +5,7 @@ import ( "encoding/binary" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type Varbit struct { diff --git a/pgtype/varchar_array.go b/pgtype/varchar_array.go index d2359d03..6aa92337 100644 --- a/pgtype/varchar_array.go +++ b/pgtype/varchar_array.go @@ -5,7 +5,7 @@ import ( "encoding/binary" "github.com/jackc/pgio" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type VarcharArray struct { diff --git a/query.go b/query.go index d9e8c07e..e104e240 100644 --- a/query.go +++ b/query.go @@ -6,7 +6,7 @@ import ( "reflect" "time" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" "github.com/jackc/pgconn" "github.com/jackc/pgx/v4/pgtype" diff --git a/replication.go b/replication.go index 7647db3e..67102189 100644 --- a/replication.go +++ b/replication.go @@ -7,7 +7,7 @@ import ( "strings" "time" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" "github.com/jackc/pgconn" "github.com/jackc/pgio" diff --git a/stress_test.go b/stress_test.go index 285973f0..ac493017 100644 --- a/stress_test.go +++ b/stress_test.go @@ -9,7 +9,7 @@ package pgx_test // "testing" // "time" -// "github.com/pkg/errors" +// errors "golang.org/x/xerrors" // "github.com/jackc/fake" // "github.com/jackc/pgx/v4" diff --git a/tx.go b/tx.go index bd0bd9f0..e840c741 100644 --- a/tx.go +++ b/tx.go @@ -6,7 +6,7 @@ import ( "fmt" "github.com/jackc/pgconn" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) type TxIsoLevel string diff --git a/values.go b/values.go index 86392c4c..9faf238d 100644 --- a/values.go +++ b/values.go @@ -9,7 +9,7 @@ import ( "github.com/jackc/pgio" "github.com/jackc/pgx/v4/pgtype" - "github.com/pkg/errors" + errors "golang.org/x/xerrors" ) // PostgreSQL format codes