diff --git a/store/nullables.go b/store/nullables.go index fe9073a..a3f530e 100644 --- a/store/nullables.go +++ b/store/nullables.go @@ -5,7 +5,9 @@ import ( "encoding/json" ) -type NullTime sql.NullTime +type NullTime struct { + sql.NullTime +} func (nt NullTime) MarshalJSON() ([]byte, error) { if nt.Valid { @@ -26,7 +28,9 @@ func (nt *NullTime) UnmarshalJSON(data []byte) error { return nil } -type NullString sql.NullString +type NullString struct { + sql.NullString +} func (ns NullString) MarshalJSON() ([]byte, error) { if ns.Valid {