diff --git a/aclitem.go b/aclitem.go index 123e86b6..36df71bc 100644 --- a/aclitem.go +++ b/aclitem.go @@ -43,7 +43,7 @@ func (dst *ACLItem) Set(src interface{}) error { return nil } -func (dst *ACLItem) Get() interface{} { +func (dst ACLItem) Get() interface{} { switch dst.Status { case Present: return dst.String diff --git a/aclitem_array.go b/aclitem_array.go index 7b2e4dbc..bfb069fd 100644 --- a/aclitem_array.go +++ b/aclitem_array.go @@ -62,7 +62,7 @@ func (dst *ACLItemArray) Set(src interface{}) error { return nil } -func (dst *ACLItemArray) Get() interface{} { +func (dst ACLItemArray) Get() interface{} { switch dst.Status { case Present: return dst diff --git a/bit.go b/bit.go index 925cfe7c..c1709e6b 100644 --- a/bit.go +++ b/bit.go @@ -10,8 +10,8 @@ func (dst *Bit) Set(src interface{}) error { return (*Varbit)(dst).Set(src) } -func (dst *Bit) Get() interface{} { - return (*Varbit)(dst).Get() +func (dst Bit) Get() interface{} { + return (Varbit)(dst).Get() } func (src *Bit) AssignTo(dst interface{}) error { diff --git a/bool.go b/bool.go index db02f663..898197f7 100644 --- a/bool.go +++ b/bool.go @@ -38,7 +38,7 @@ func (dst *Bool) Set(src interface{}) error { return nil } -func (dst *Bool) Get() interface{} { +func (dst Bool) Get() interface{} { switch dst.Status { case Present: return dst.Bool diff --git a/bool_array.go b/bool_array.go index 3dbb4ca0..44500b79 100644 --- a/bool_array.go +++ b/bool_array.go @@ -64,7 +64,7 @@ func (dst *BoolArray) Set(src interface{}) error { return nil } -func (dst *BoolArray) Get() interface{} { +func (dst BoolArray) Get() interface{} { switch dst.Status { case Present: return dst diff --git a/box.go b/box.go index 9baabf6b..75d50f98 100644 --- a/box.go +++ b/box.go @@ -21,7 +21,7 @@ func (dst *Box) Set(src interface{}) error { return errors.Errorf("cannot convert %v to Box", src) } -func (dst *Box) Get() interface{} { +func (dst Box) Get() interface{} { switch dst.Status { case Present: return dst diff --git a/bpchar.go b/bpchar.go index 1a85fa0d..f82e3724 100644 --- a/bpchar.go +++ b/bpchar.go @@ -14,8 +14,8 @@ func (dst *BPChar) Set(src interface{}) error { } // Get returns underlying value -func (dst *BPChar) Get() interface{} { - return (*Text)(dst).Get() +func (dst BPChar) Get() interface{} { + return (Text)(dst).Get() } // AssignTo assigns from src to dst. diff --git a/bpchar_array.go b/bpchar_array.go index b60ccc91..50168f6e 100644 --- a/bpchar_array.go +++ b/bpchar_array.go @@ -64,7 +64,7 @@ func (dst *BPCharArray) Set(src interface{}) error { return nil } -func (dst *BPCharArray) Get() interface{} { +func (dst BPCharArray) Get() interface{} { switch dst.Status { case Present: return dst diff --git a/bytea.go b/bytea.go index c6e79cdf..507498cb 100644 --- a/bytea.go +++ b/bytea.go @@ -35,7 +35,7 @@ func (dst *Bytea) Set(src interface{}) error { return nil } -func (dst *Bytea) Get() interface{} { +func (dst Bytea) Get() interface{} { switch dst.Status { case Present: return dst.Bytes diff --git a/bytea_array.go b/bytea_array.go index fbebff24..d0b4b367 100644 --- a/bytea_array.go +++ b/bytea_array.go @@ -64,7 +64,7 @@ func (dst *ByteaArray) Set(src interface{}) error { return nil } -func (dst *ByteaArray) Get() interface{} { +func (dst ByteaArray) Get() interface{} { switch dst.Status { case Present: return dst diff --git a/cid.go b/cid.go index d27982bd..b944748c 100644 --- a/cid.go +++ b/cid.go @@ -24,8 +24,8 @@ func (dst *CID) Set(src interface{}) error { return (*pguint32)(dst).Set(src) } -func (dst *CID) Get() interface{} { - return (*pguint32)(dst).Get() +func (dst CID) Get() interface{} { + return (pguint32)(dst).Get() } // AssignTo assigns from src to dst. Note that as CID is not a general number diff --git a/cidr.go b/cidr.go index 9e13a97e..2241ca1c 100644 --- a/cidr.go +++ b/cidr.go @@ -6,8 +6,8 @@ func (dst *CIDR) Set(src interface{}) error { return (*Inet)(dst).Set(src) } -func (dst *CIDR) Get() interface{} { - return (*Inet)(dst).Get() +func (dst CIDR) Get() interface{} { + return (Inet)(dst).Get() } func (src *CIDR) AssignTo(dst interface{}) error { diff --git a/cidr_array.go b/cidr_array.go index dbc71bb5..b6334f74 100644 --- a/cidr_array.go +++ b/cidr_array.go @@ -84,7 +84,7 @@ func (dst *CIDRArray) Set(src interface{}) error { return nil } -func (dst *CIDRArray) Get() interface{} { +func (dst CIDRArray) Get() interface{} { switch dst.Status { case Present: return dst diff --git a/circle.go b/circle.go index 9644345c..d3f8b38a 100644 --- a/circle.go +++ b/circle.go @@ -22,7 +22,7 @@ func (dst *Circle) Set(src interface{}) error { return errors.Errorf("cannot convert %v to Circle", src) } -func (dst *Circle) Get() interface{} { +func (dst Circle) Get() interface{} { switch dst.Status { case Present: return dst diff --git a/date.go b/date.go index eaf95dde..9804672b 100644 --- a/date.go +++ b/date.go @@ -40,7 +40,7 @@ func (dst *Date) Set(src interface{}) error { return nil } -func (dst *Date) Get() interface{} { +func (dst Date) Get() interface{} { switch dst.Status { case Present: if dst.InfinityModifier != None { diff --git a/date_array.go b/date_array.go index c97e83ee..ce6b9550 100644 --- a/date_array.go +++ b/date_array.go @@ -65,7 +65,7 @@ func (dst *DateArray) Set(src interface{}) error { return nil } -func (dst *DateArray) Get() interface{} { +func (dst DateArray) Get() interface{} { switch dst.Status { case Present: return dst diff --git a/daterange.go b/daterange.go index 40997bd9..78e7b813 100644 --- a/daterange.go +++ b/daterange.go @@ -19,7 +19,7 @@ func (dst *Daterange) Set(src interface{}) error { return errors.Errorf("cannot convert %v to Daterange", src) } -func (dst *Daterange) Get() interface{} { +func (dst Daterange) Get() interface{} { switch dst.Status { case Present: return dst diff --git a/enum_array.go b/enum_array.go index 3e07eae9..8220d425 100644 --- a/enum_array.go +++ b/enum_array.go @@ -62,7 +62,7 @@ func (dst *EnumArray) Set(src interface{}) error { return nil } -func (dst *EnumArray) Get() interface{} { +func (dst EnumArray) Get() interface{} { switch dst.Status { case Present: return dst diff --git a/ext/gofrs-uuid/uuid.go b/ext/gofrs-uuid/uuid.go index 9b95a225..c1179ae2 100644 --- a/ext/gofrs-uuid/uuid.go +++ b/ext/gofrs-uuid/uuid.go @@ -47,7 +47,7 @@ func (dst *UUID) Set(src interface{}) error { return nil } -func (dst *UUID) Get() interface{} { +func (dst UUID) Get() interface{} { switch dst.Status { case pgtype.Present: return dst.UUID diff --git a/ext/shopspring-numeric/decimal.go b/ext/shopspring-numeric/decimal.go index 259fa54d..9fc8b515 100644 --- a/ext/shopspring-numeric/decimal.go +++ b/ext/shopspring-numeric/decimal.go @@ -89,7 +89,7 @@ func (dst *Numeric) Set(src interface{}) error { return nil } -func (dst *Numeric) Get() interface{} { +func (dst Numeric) Get() interface{} { switch dst.Status { case pgtype.Present: return dst.Decimal diff --git a/float4.go b/float4.go index 3f701dc5..cef14274 100644 --- a/float4.go +++ b/float4.go @@ -92,7 +92,7 @@ func (dst *Float4) Set(src interface{}) error { return nil } -func (dst *Float4) Get() interface{} { +func (dst Float4) Get() interface{} { switch dst.Status { case Present: return dst.Float diff --git a/float4_array.go b/float4_array.go index 07fac71a..4dcdef43 100644 --- a/float4_array.go +++ b/float4_array.go @@ -64,7 +64,7 @@ func (dst *Float4Array) Set(src interface{}) error { return nil } -func (dst *Float4Array) Get() interface{} { +func (dst Float4Array) Get() interface{} { switch dst.Status { case Present: return dst diff --git a/float8.go b/float8.go index 9c6847c3..13d6b326 100644 --- a/float8.go +++ b/float8.go @@ -82,7 +82,7 @@ func (dst *Float8) Set(src interface{}) error { return nil } -func (dst *Float8) Get() interface{} { +func (dst Float8) Get() interface{} { switch dst.Status { case Present: return dst.Float diff --git a/float8_array.go b/float8_array.go index 2f65c736..be3d1d20 100644 --- a/float8_array.go +++ b/float8_array.go @@ -64,7 +64,7 @@ func (dst *Float8Array) Set(src interface{}) error { return nil } -func (dst *Float8Array) Get() interface{} { +func (dst Float8Array) Get() interface{} { switch dst.Status { case Present: return dst diff --git a/generic_binary.go b/generic_binary.go index 5689523e..76a1d351 100644 --- a/generic_binary.go +++ b/generic_binary.go @@ -12,8 +12,8 @@ func (dst *GenericBinary) Set(src interface{}) error { return (*Bytea)(dst).Set(src) } -func (dst *GenericBinary) Get() interface{} { - return (*Bytea)(dst).Get() +func (dst GenericBinary) Get() interface{} { + return (Bytea)(dst).Get() } func (src *GenericBinary) AssignTo(dst interface{}) error { diff --git a/generic_text.go b/generic_text.go index d8890f48..dbf5b47e 100644 --- a/generic_text.go +++ b/generic_text.go @@ -12,8 +12,8 @@ func (dst *GenericText) Set(src interface{}) error { return (*Text)(dst).Set(src) } -func (dst *GenericText) Get() interface{} { - return (*Text)(dst).Get() +func (dst GenericText) Get() interface{} { + return (Text)(dst).Get() } func (src *GenericText) AssignTo(dst interface{}) error { diff --git a/hstore.go b/hstore.go index 45b165af..fcfd8f9a 100644 --- a/hstore.go +++ b/hstore.go @@ -40,7 +40,7 @@ func (dst *Hstore) Set(src interface{}) error { return nil } -func (dst *Hstore) Get() interface{} { +func (dst Hstore) Get() interface{} { switch dst.Status { case Present: return dst.Map diff --git a/hstore_array.go b/hstore_array.go index 06a11c02..3ab264f9 100644 --- a/hstore_array.go +++ b/hstore_array.go @@ -64,7 +64,7 @@ func (dst *HstoreArray) Set(src interface{}) error { return nil } -func (dst *HstoreArray) Get() interface{} { +func (dst HstoreArray) Get() interface{} { switch dst.Status { case Present: return dst diff --git a/inet.go b/inet.go index 3c2eda9b..b7bbd9c4 100644 --- a/inet.go +++ b/inet.go @@ -52,7 +52,7 @@ func (dst *Inet) Set(src interface{}) error { return nil } -func (dst *Inet) Get() interface{} { +func (dst Inet) Get() interface{} { switch dst.Status { case Present: return dst.IPNet diff --git a/inet_array.go b/inet_array.go index 88181739..58cd656b 100644 --- a/inet_array.go +++ b/inet_array.go @@ -84,7 +84,7 @@ func (dst *InetArray) Set(src interface{}) error { return nil } -func (dst *InetArray) Get() interface{} { +func (dst InetArray) Get() interface{} { switch dst.Status { case Present: return dst diff --git a/int2.go b/int2.go index f3e01308..7ed76803 100644 --- a/int2.go +++ b/int2.go @@ -88,7 +88,7 @@ func (dst *Int2) Set(src interface{}) error { return nil } -func (dst *Int2) Get() interface{} { +func (dst Int2) Get() interface{} { switch dst.Status { case Present: return dst.Int diff --git a/int2_array.go b/int2_array.go index 3f6bdb87..1ef24c63 100644 --- a/int2_array.go +++ b/int2_array.go @@ -197,7 +197,7 @@ func (dst *Int2Array) Set(src interface{}) error { return nil } -func (dst *Int2Array) Get() interface{} { +func (dst Int2Array) Get() interface{} { switch dst.Status { case Present: return dst diff --git a/int4.go b/int4.go index 2075b375..efe3916e 100644 --- a/int4.go +++ b/int4.go @@ -80,7 +80,7 @@ func (dst *Int4) Set(src interface{}) error { return nil } -func (dst *Int4) Get() interface{} { +func (dst Int4) Get() interface{} { switch dst.Status { case Present: return dst.Int diff --git a/int4_array.go b/int4_array.go index f3e87b00..61112f8d 100644 --- a/int4_array.go +++ b/int4_array.go @@ -197,7 +197,7 @@ func (dst *Int4Array) Set(src interface{}) error { return nil } -func (dst *Int4Array) Get() interface{} { +func (dst Int4Array) Get() interface{} { switch dst.Status { case Present: return dst diff --git a/int4range.go b/int4range.go index 03970ae6..6638e9c1 100644 --- a/int4range.go +++ b/int4range.go @@ -19,7 +19,7 @@ func (dst *Int4range) Set(src interface{}) error { return errors.Errorf("cannot convert %v to Int4range", src) } -func (dst *Int4range) Get() interface{} { +func (dst Int4range) Get() interface{} { switch dst.Status { case Present: return dst diff --git a/int8.go b/int8.go index 01a694e4..526cde94 100644 --- a/int8.go +++ b/int8.go @@ -71,7 +71,7 @@ func (dst *Int8) Set(src interface{}) error { return nil } -func (dst *Int8) Get() interface{} { +func (dst Int8) Get() interface{} { switch dst.Status { case Present: return dst.Int diff --git a/int8_array.go b/int8_array.go index a6798173..985b47b8 100644 --- a/int8_array.go +++ b/int8_array.go @@ -197,7 +197,7 @@ func (dst *Int8Array) Set(src interface{}) error { return nil } -func (dst *Int8Array) Get() interface{} { +func (dst Int8Array) Get() interface{} { switch dst.Status { case Present: return dst diff --git a/int8range.go b/int8range.go index 0e0f1cdb..88027974 100644 --- a/int8range.go +++ b/int8range.go @@ -19,7 +19,7 @@ func (dst *Int8range) Set(src interface{}) error { return errors.Errorf("cannot convert %v to Int8range", src) } -func (dst *Int8range) Get() interface{} { +func (dst Int8range) Get() interface{} { switch dst.Status { case Present: return dst diff --git a/interval.go b/interval.go index bb19f956..0afd1cbd 100644 --- a/interval.go +++ b/interval.go @@ -44,7 +44,7 @@ func (dst *Interval) Set(src interface{}) error { return nil } -func (dst *Interval) Get() interface{} { +func (dst Interval) Get() interface{} { switch dst.Status { case Present: return dst diff --git a/json.go b/json.go index 58a5b093..1b99c5c2 100644 --- a/json.go +++ b/json.go @@ -53,7 +53,7 @@ func (dst *JSON) Set(src interface{}) error { return nil } -func (dst *JSON) Get() interface{} { +func (dst JSON) Get() interface{} { switch dst.Status { case Present: var i interface{} diff --git a/jsonb.go b/jsonb.go index 43e23fb2..984c0973 100644 --- a/jsonb.go +++ b/jsonb.go @@ -12,8 +12,8 @@ func (dst *JSONB) Set(src interface{}) error { return (*JSON)(dst).Set(src) } -func (dst *JSONB) Get() interface{} { - return (*JSON)(dst).Get() +func (dst JSONB) Get() interface{} { + return (JSON)(dst).Get() } func (src *JSONB) AssignTo(dst interface{}) error { diff --git a/line.go b/line.go index 61477ad9..737f5d86 100644 --- a/line.go +++ b/line.go @@ -21,7 +21,7 @@ func (dst *Line) Set(src interface{}) error { return errors.Errorf("cannot convert %v to Line", src) } -func (dst *Line) Get() interface{} { +func (dst Line) Get() interface{} { switch dst.Status { case Present: return dst diff --git a/lseg.go b/lseg.go index 822b7bf4..a16dcea3 100644 --- a/lseg.go +++ b/lseg.go @@ -21,7 +21,7 @@ func (dst *Lseg) Set(src interface{}) error { return errors.Errorf("cannot convert %v to Lseg", src) } -func (dst *Lseg) Get() interface{} { +func (dst Lseg) Get() interface{} { switch dst.Status { case Present: return dst diff --git a/macaddr.go b/macaddr.go index 29c60440..55dec4f2 100644 --- a/macaddr.go +++ b/macaddr.go @@ -39,7 +39,7 @@ func (dst *Macaddr) Set(src interface{}) error { return nil } -func (dst *Macaddr) Get() interface{} { +func (dst Macaddr) Get() interface{} { switch dst.Status { case Present: return dst.Addr diff --git a/macaddr_array.go b/macaddr_array.go index 8382ea45..b4d42d61 100644 --- a/macaddr_array.go +++ b/macaddr_array.go @@ -65,7 +65,7 @@ func (dst *MacaddrArray) Set(src interface{}) error { return nil } -func (dst *MacaddrArray) Get() interface{} { +func (dst MacaddrArray) Get() interface{} { switch dst.Status { case Present: return dst diff --git a/name.go b/name.go index 753a074a..7ce8d25e 100644 --- a/name.go +++ b/name.go @@ -23,8 +23,8 @@ func (dst *Name) Set(src interface{}) error { return (*Text)(dst).Set(src) } -func (dst *Name) Get() interface{} { - return (*Text)(dst).Get() +func (dst Name) Get() interface{} { + return (Text)(dst).Get() } func (src *Name) AssignTo(dst interface{}) error { diff --git a/numeric.go b/numeric.go index 554fb582..100a7e9c 100644 --- a/numeric.go +++ b/numeric.go @@ -104,7 +104,7 @@ func (dst *Numeric) Set(src interface{}) error { return nil } -func (dst *Numeric) Get() interface{} { +func (dst Numeric) Get() interface{} { switch dst.Status { case Present: return dst diff --git a/numeric_array.go b/numeric_array.go index 432cd96f..224306c1 100644 --- a/numeric_array.go +++ b/numeric_array.go @@ -121,7 +121,7 @@ func (dst *NumericArray) Set(src interface{}) error { return nil } -func (dst *NumericArray) Get() interface{} { +func (dst NumericArray) Get() interface{} { switch dst.Status { case Present: return dst diff --git a/numrange.go b/numrange.go index f3e25109..64b7fbc3 100644 --- a/numrange.go +++ b/numrange.go @@ -19,7 +19,7 @@ func (dst *Numrange) Set(src interface{}) error { return errors.Errorf("cannot convert %v to Numrange", src) } -func (dst *Numrange) Get() interface{} { +func (dst Numrange) Get() interface{} { switch dst.Status { case Present: return dst diff --git a/oid_value.go b/oid_value.go index 619681a5..5dc9136c 100644 --- a/oid_value.go +++ b/oid_value.go @@ -18,8 +18,8 @@ func (dst *OIDValue) Set(src interface{}) error { return (*pguint32)(dst).Set(src) } -func (dst *OIDValue) Get() interface{} { - return (*pguint32)(dst).Get() +func (dst OIDValue) Get() interface{} { + return (pguint32)(dst).Get() } // AssignTo assigns from src to dst. Note that as OIDValue is not a general number diff --git a/path.go b/path.go index 484c9174..c5031330 100644 --- a/path.go +++ b/path.go @@ -22,7 +22,7 @@ func (dst *Path) Set(src interface{}) error { return errors.Errorf("cannot convert %v to Path", src) } -func (dst *Path) Get() interface{} { +func (dst Path) Get() interface{} { switch dst.Status { case Present: return dst diff --git a/pguint32.go b/pguint32.go index 546d6f8f..a245d2c9 100644 --- a/pguint32.go +++ b/pguint32.go @@ -39,7 +39,7 @@ func (dst *pguint32) Set(src interface{}) error { return nil } -func (dst *pguint32) Get() interface{} { +func (dst pguint32) Get() interface{} { switch dst.Status { case Present: return dst.Uint diff --git a/point.go b/point.go index bb7daa24..87993656 100644 --- a/point.go +++ b/point.go @@ -26,7 +26,7 @@ func (dst *Point) Set(src interface{}) error { return errors.Errorf("cannot convert %v to Point", src) } -func (dst *Point) Get() interface{} { +func (dst Point) Get() interface{} { switch dst.Status { case Present: return dst diff --git a/polygon.go b/polygon.go index 7805604b..653b04c1 100644 --- a/polygon.go +++ b/polygon.go @@ -21,7 +21,7 @@ func (dst *Polygon) Set(src interface{}) error { return errors.Errorf("cannot convert %v to Polygon", src) } -func (dst *Polygon) Get() interface{} { +func (dst Polygon) Get() interface{} { switch dst.Status { case Present: return dst diff --git a/qchar.go b/qchar.go index 8a316d9b..d6577248 100644 --- a/qchar.go +++ b/qchar.go @@ -105,7 +105,7 @@ func (dst *QChar) Set(src interface{}) error { return nil } -func (dst *QChar) Get() interface{} { +func (dst QChar) Get() interface{} { switch dst.Status { case Present: return dst.Int diff --git a/record.go b/record.go index 28f4a182..aecc978b 100644 --- a/record.go +++ b/record.go @@ -33,7 +33,7 @@ func (dst *Record) Set(src interface{}) error { return nil } -func (dst *Record) Get() interface{} { +func (dst Record) Get() interface{} { switch dst.Status { case Present: return dst.Fields diff --git a/text.go b/text.go index cdd993db..bd5f0689 100644 --- a/text.go +++ b/text.go @@ -43,7 +43,7 @@ func (dst *Text) Set(src interface{}) error { return nil } -func (dst *Text) Get() interface{} { +func (dst Text) Get() interface{} { switch dst.Status { case Present: return dst.String diff --git a/text_array.go b/text_array.go index 653e41fc..9b5fcec6 100644 --- a/text_array.go +++ b/text_array.go @@ -64,7 +64,7 @@ func (dst *TextArray) Set(src interface{}) error { return nil } -func (dst *TextArray) Get() interface{} { +func (dst TextArray) Get() interface{} { switch dst.Status { case Present: return dst diff --git a/tid.go b/tid.go index 08f5c047..98b95e2a 100644 --- a/tid.go +++ b/tid.go @@ -32,7 +32,7 @@ func (dst *TID) Set(src interface{}) error { return errors.Errorf("cannot convert %v to TID", src) } -func (dst *TID) Get() interface{} { +func (dst TID) Get() interface{} { switch dst.Status { case Present: return dst diff --git a/time.go b/time.go index 3bf91b10..60043fcd 100644 --- a/time.go +++ b/time.go @@ -45,7 +45,7 @@ func (dst *Time) Set(src interface{}) error { return nil } -func (dst *Time) Get() interface{} { +func (dst Time) Get() interface{} { switch dst.Status { case Present: return dst.Microseconds diff --git a/timestamp.go b/timestamp.go index 01c38a0a..feb88873 100644 --- a/timestamp.go +++ b/timestamp.go @@ -43,7 +43,7 @@ func (dst *Timestamp) Set(src interface{}) error { return nil } -func (dst *Timestamp) Get() interface{} { +func (dst Timestamp) Get() interface{} { switch dst.Status { case Present: if dst.InfinityModifier != None { diff --git a/timestamp_array.go b/timestamp_array.go index 072e01ac..063d339b 100644 --- a/timestamp_array.go +++ b/timestamp_array.go @@ -65,7 +65,7 @@ func (dst *TimestampArray) Set(src interface{}) error { return nil } -func (dst *TimestampArray) Get() interface{} { +func (dst TimestampArray) Get() interface{} { switch dst.Status { case Present: return dst diff --git a/timestamptz.go b/timestamptz.go index 7ed86eb8..3d3e7143 100644 --- a/timestamptz.go +++ b/timestamptz.go @@ -45,7 +45,7 @@ func (dst *Timestamptz) Set(src interface{}) error { return nil } -func (dst *Timestamptz) Get() interface{} { +func (dst Timestamptz) Get() interface{} { switch dst.Status { case Present: if dst.InfinityModifier != None { diff --git a/timestamptz_array.go b/timestamptz_array.go index 9d0677c8..4924498d 100644 --- a/timestamptz_array.go +++ b/timestamptz_array.go @@ -65,7 +65,7 @@ func (dst *TimestamptzArray) Set(src interface{}) error { return nil } -func (dst *TimestamptzArray) Get() interface{} { +func (dst TimestamptzArray) Get() interface{} { switch dst.Status { case Present: return dst diff --git a/tsrange.go b/tsrange.go index 54cc863f..68fa6d73 100644 --- a/tsrange.go +++ b/tsrange.go @@ -19,7 +19,7 @@ func (dst *Tsrange) Set(src interface{}) error { return errors.Errorf("cannot convert %v to Tsrange", src) } -func (dst *Tsrange) Get() interface{} { +func (dst Tsrange) Get() interface{} { switch dst.Status { case Present: return dst diff --git a/tstzrange.go b/tstzrange.go index 1cf2859d..8441275f 100644 --- a/tstzrange.go +++ b/tstzrange.go @@ -19,7 +19,7 @@ func (dst *Tstzrange) Set(src interface{}) error { return errors.Errorf("cannot convert %v to Tstzrange", src) } -func (dst *Tstzrange) Get() interface{} { +func (dst Tstzrange) Get() interface{} { switch dst.Status { case Present: return dst diff --git a/tstzrange_array.go b/tstzrange_array.go index f7c0121d..cf407253 100644 --- a/tstzrange_array.go +++ b/tstzrange_array.go @@ -45,7 +45,7 @@ func (dst *TstzrangeArray) Set(src interface{}) error { return nil } -func (dst *TstzrangeArray) Get() interface{} { +func (dst TstzrangeArray) Get() interface{} { switch dst.Status { case Present: return dst diff --git a/typed_array.go.erb b/typed_array.go.erb index 72c0c381..494bd534 100644 --- a/typed_array.go.erb +++ b/typed_array.go.erb @@ -66,7 +66,7 @@ func (dst *<%= pgtype_array_type %>) Set(src interface{}) error { return nil } -func (dst *<%= pgtype_array_type %>) Get() interface{} { +func (dst <%= pgtype_array_type %>) Get() interface{} { switch dst.Status { case Present: return dst diff --git a/typed_range.go.erb b/typed_range.go.erb index 035a71af..9846e5dd 100644 --- a/typed_range.go.erb +++ b/typed_range.go.erb @@ -21,7 +21,7 @@ func (dst *<%= range_type %>) Set(src interface{}) error { return errors.Errorf("cannot convert %v to <%= range_type %>", src) } -func (dst *<%= range_type %>) Get() interface{} { +func (dst <%= range_type %>) Get() interface{} { switch dst.Status { case Present: return dst diff --git a/unknown.go b/unknown.go index 2dca0f87..c591b708 100644 --- a/unknown.go +++ b/unknown.go @@ -15,8 +15,8 @@ func (dst *Unknown) Set(src interface{}) error { return (*Text)(dst).Set(src) } -func (dst *Unknown) Get() interface{} { - return (*Text)(dst).Get() +func (dst Unknown) Get() interface{} { + return (Text)(dst).Get() } // AssignTo assigns from src to dst. Note that as Unknown is not a general number diff --git a/uuid.go b/uuid.go index ba999a06..70a6b7fa 100644 --- a/uuid.go +++ b/uuid.go @@ -48,7 +48,7 @@ func (dst *UUID) Set(src interface{}) error { return nil } -func (dst *UUID) Get() interface{} { +func (dst UUID) Get() interface{} { switch dst.Status { case Present: return dst.Bytes diff --git a/uuid_array.go b/uuid_array.go index 7c324e53..27dcd259 100644 --- a/uuid_array.go +++ b/uuid_array.go @@ -102,7 +102,7 @@ func (dst *UUIDArray) Set(src interface{}) error { return nil } -func (dst *UUIDArray) Get() interface{} { +func (dst UUIDArray) Get() interface{} { switch dst.Status { case Present: return dst diff --git a/varbit.go b/varbit.go index 019fff8a..7461bab3 100644 --- a/varbit.go +++ b/varbit.go @@ -18,7 +18,7 @@ func (dst *Varbit) Set(src interface{}) error { return errors.Errorf("cannot convert %v to Varbit", src) } -func (dst *Varbit) Get() interface{} { +func (dst Varbit) Get() interface{} { switch dst.Status { case Present: return dst diff --git a/varchar.go b/varchar.go index 58de1097..e4fa6869 100644 --- a/varchar.go +++ b/varchar.go @@ -13,8 +13,8 @@ func (dst *Varchar) Set(src interface{}) error { return (*Text)(dst).Set(src) } -func (dst *Varchar) Get() interface{} { - return (*Text)(dst).Get() +func (dst Varchar) Get() interface{} { + return (Text)(dst).Get() } // AssignTo assigns from src to dst. Note that as Varchar is not a general number diff --git a/varchar_array.go b/varchar_array.go index ac9af519..7f476285 100644 --- a/varchar_array.go +++ b/varchar_array.go @@ -64,7 +64,7 @@ func (dst *VarcharArray) Set(src interface{}) error { return nil } -func (dst *VarcharArray) Get() interface{} { +func (dst VarcharArray) Get() interface{} { switch dst.Status { case Present: return dst diff --git a/xid.go b/xid.go index 80ebf0e0..f6d6b22d 100644 --- a/xid.go +++ b/xid.go @@ -27,8 +27,8 @@ func (dst *XID) Set(src interface{}) error { return (*pguint32)(dst).Set(src) } -func (dst *XID) Get() interface{} { - return (*pguint32)(dst).Get() +func (dst XID) Get() interface{} { + return (pguint32)(dst).Get() } // AssignTo assigns from src to dst. Note that as XID is not a general number