Skip to content

Commit dfd5d81

Browse files
committed
Value() should be defined on a non-pointer receiver
1 parent 041545b commit dfd5d81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ func (n *NullJSONText) Scan(value interface{}) error {
140140
}
141141

142142
// Value implements the driver Valuer interface.
143-
func (n *NullJSONText) Value() (driver.Value, error) {
143+
func (n NullJSONText) Value() (driver.Value, error) {
144144
if !n.Valid {
145145
return nil, nil
146146
}

0 commit comments

Comments
 (0)