Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
uncanny
· 6y ago · 0 comments
You can use a type that marshals the Go zero value to database null and vice versa.
https://godoc.org/github.com/jackc/pgtype/zeronull
provides a UUID type with that behavior.
Comments
No comments yet.
Better HN