diff --git a/aclitem.go b/aclitem.go index a54955eb..c801eb83 100644 --- a/aclitem.go +++ b/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/aclitem_array.go b/aclitem_array.go index 2671022b..c8421153 100644 --- a/aclitem_array.go +++ b/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/array.go b/array.go index 9ce0f003..69456782 100644 --- a/array.go +++ b/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/bool.go b/bool.go index 22774970..f622061b 100644 --- a/bool.go +++ b/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/bool_array.go b/bool_array.go index 1aefcd27..3dde8dc0 100644 --- a/bool_array.go +++ b/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/box.go b/box.go index 4c825c56..ce5300e5 100644 --- a/box.go +++ b/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/bpchar_array.go b/bpchar_array.go index dd4a8363..547b4e80 100644 --- a/bpchar_array.go +++ b/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/bytea.go b/bytea.go index 064f199a..e6c28dc7 100644 --- a/bytea.go +++ b/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/bytea_array.go b/bytea_array.go index fc07d103..369d6e08 100644 --- a/bytea_array.go +++ b/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/cidr_array.go b/cidr_array.go index 62b0ca65..94c07679 100644 --- a/cidr_array.go +++ b/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/circle.go b/circle.go index a3bb56f1..66dec132 100644 --- a/circle.go +++ b/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/convert.go b/convert.go index 5dfb738e..98999d45 100644 --- a/convert.go +++ b/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/database_sql.go b/database_sql.go index 969536dd..f54a750d 100644 --- a/database_sql.go +++ b/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/date.go b/date.go index 3f8d188a..08ba8c08 100644 --- a/date.go +++ b/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/date_array.go b/date_array.go index 6d6c0899..05070360 100644 --- a/date_array.go +++ b/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/daterange.go b/daterange.go index d10d34c0..40997bd9 100644 --- a/daterange.go +++ b/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/enum_array.go b/enum_array.go index 5de2badf..504d513c 100644 --- a/enum_array.go +++ b/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/ext/satori-uuid/uuid.go b/ext/satori-uuid/uuid.go index 8713b4d6..2aebfc47 100644 --- a/ext/satori-uuid/uuid.go +++ b/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/ext/shopspring-numeric/decimal.go b/ext/shopspring-numeric/decimal.go index 0b63999b..54612db9 100644 --- a/ext/shopspring-numeric/decimal.go +++ b/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/float4.go b/float4.go index c4feb0a7..0947f36a 100644 --- a/float4.go +++ b/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/float4_array.go b/float4_array.go index b14161e8..ef134407 100644 --- a/float4_array.go +++ b/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/float8.go b/float8.go index 63944d45..87cf6adb 100644 --- a/float8.go +++ b/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/float8_array.go b/float8_array.go index 60e87236..ba63449c 100644 --- a/float8_array.go +++ b/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/hstore.go b/hstore.go index 8a84fe2a..522813ff 100644 --- a/hstore.go +++ b/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/hstore_array.go b/hstore_array.go index 19d07686..1bdac816 100644 --- a/hstore_array.go +++ b/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/inet.go b/inet.go index dfdd8868..0fb1c418 100644 --- a/inet.go +++ b/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/inet_array.go b/inet_array.go index 51ad7988..b31d3588 100644 --- a/inet_array.go +++ b/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/int2.go b/int2.go index 72110684..bbf2952f 100644 --- a/int2.go +++ b/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/int2_array.go b/int2_array.go index e3b9f64b..afb39513 100644 --- a/int2_array.go +++ b/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/int4.go b/int4.go index 9ad878c4..cc34ce0a 100644 --- a/int4.go +++ b/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/int4_array.go b/int4_array.go index ad75c4b5..bd0babb9 100644 --- a/int4_array.go +++ b/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/int4range.go b/int4range.go index 67bbfcd2..03970ae6 100644 --- a/int4range.go +++ b/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/int8.go b/int8.go index 39b8a0a8..153f1f7d 100644 --- a/int8.go +++ b/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/int8_array.go b/int8_array.go index ae8d8e0f..392fd47e 100644 --- a/int8_array.go +++ b/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/int8range.go b/int8range.go index 25839a7b..0e0f1cdb 100644 --- a/int8range.go +++ b/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/interval.go b/interval.go index 9172e14a..a7edca83 100644 --- a/interval.go +++ b/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/json.go b/json.go index 377a1546..49ff7a6c 100644 --- a/json.go +++ b/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/jsonb.go b/jsonb.go index c315c588..065e4e21 100644 --- a/jsonb.go +++ b/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/line.go b/line.go index 6ac4ac2a..617ee456 100644 --- a/line.go +++ b/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/lseg.go b/lseg.go index c0e77799..b8d6e322 100644 --- a/lseg.go +++ b/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/macaddr.go b/macaddr.go index 6854400b..25ffc48e 100644 --- a/macaddr.go +++ b/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/macaddr_array.go b/macaddr_array.go index 2d0439e9..0b791104 100644 --- a/macaddr_array.go +++ b/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/numeric.go b/numeric.go index 887ad1f8..bbd7667a 100644 --- a/numeric.go +++ b/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/numeric_array.go b/numeric_array.go index ec892cc8..1e8c5cda 100644 --- a/numeric_array.go +++ b/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/numrange.go b/numrange.go index ff9d5372..f3e25109 100644 --- a/numrange.go +++ b/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/oid.go b/oid.go index 2afc60f8..593a5261 100644 --- a/oid.go +++ b/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/path.go b/path.go index c1b72322..a4c6af77 100644 --- a/path.go +++ b/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.go b/pgtype.go index 4faf23e1..cea4e1cd 100644 --- a/pgtype.go +++ b/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/pguint32.go b/pguint32.go index 37178b5c..21da9664 100644 --- a/pguint32.go +++ b/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/point.go b/point.go index fefe5d1f..89f2359b 100644 --- a/point.go +++ b/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/polygon.go b/polygon.go index 904e86e1..e739c71b 100644 --- a/polygon.go +++ b/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/qchar.go b/qchar.go index 064dab1e..5e77dc38 100644 --- a/qchar.go +++ b/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/range.go b/range.go index 54fc6ca0..35b80ced 100644 --- a/range.go +++ b/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/record.go b/record.go index 315deda5..60733016 100644 --- a/record.go +++ b/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/text.go b/text.go index 648bbd58..4d4e6bb4 100644 --- a/text.go +++ b/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/text_array.go b/text_array.go index 1556fec8..b590972e 100644 --- a/text_array.go +++ b/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/tid.go b/tid.go index e859865b..ff788b84 100644 --- a/tid.go +++ b/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/timestamp.go b/timestamp.go index 93383e35..40dfdac8 100644 --- a/timestamp.go +++ b/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/timestamp_array.go b/timestamp_array.go index 1fd1eefe..95f76639 100644 --- a/timestamp_array.go +++ b/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/timestamptz.go b/timestamptz.go index c2c91c29..752c1818 100644 --- a/timestamptz.go +++ b/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/timestamptz_array.go b/timestamptz_array.go index b87238ae..7fe60d50 100644 --- a/timestamptz_array.go +++ b/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/tsrange.go b/tsrange.go index d771a761..54cc863f 100644 --- a/tsrange.go +++ b/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/tstzrange.go b/tstzrange.go index 9a8c782e..1cf2859d 100644 --- a/tstzrange.go +++ b/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/uuid.go b/uuid.go index 5e1eead5..d3e68f5c 100644 --- a/uuid.go +++ b/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/uuid_array.go b/uuid_array.go index fac838af..1d28ee59 100644 --- a/uuid_array.go +++ b/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/varbit.go b/varbit.go index 2c25b1fb..fe4db33d 100644 --- a/varbit.go +++ b/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/varchar_array.go b/varchar_array.go index d2359d03..6aa92337 100644 --- a/varchar_array.go +++ b/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 {