Y
Hacker News
new
|
ask
|
show
|
jobs
by
hellcow
3695 days ago
An alternative to Go's SQL null types is simply using pointers, like `*string` instead of `sql.NullString`. Pointers function in the same way, except they marshal into JSON very nicely.