Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Why it is such a pain to scan nullable types on Golang database.sql
Now I have to chose between:
1- Using temporaty variable to hold the nullable value just to soon after check and set the zero value if it is null
2- Adding coalesce to my sql query for the zero values.
Did I mention that there are around 20 collumns that are nullable...
rant
golang sql null