3 ms·
I've been using `Null[T any] struct { V T, Valid bool }` for this, as the pattern comes from database/sql. Works fine.
by hellcow 2y ago
I've been using `Null[T any] struct { V T, Valid bool }` for this, as the pattern comes from database/sql. Works fine.