thanks! seems to be working out for me too so far. makes me wonder what the use cases might be for sql.NullXYZ and other similar types from non-stdlib packages other than making the connection to db nulls more obvious maybe?
On Saturday, January 27, 2018 at 10:12:23 PM UTC+8, Reinhard Luediger wrote: > > For me it works perfect when I just define each nullable field as a > pointer in the struct which represents a da base record. If the struct > field is nil it will be null in the database and json encoding handles > these fields also correctly -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.