From 52814db43dfcb735360b4025cac5fd28c9f2e239 Mon Sep 17 00:00:00 2001 From: juancwu Date: Tue, 5 May 2026 17:38:20 +0000 Subject: [PATCH] refactor: change named types in nullables to structs --- store/nullables.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 {