Get implemented on T instead of *T
Methods defined on T are also available on *T. Thought this technically
changes the interface, because *T will be automatically dereferenced as
needed it shouldn't be a breaking change.
See a8802b16cc for similar change.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user