guregu / null

reasonable handling of nullable values
BSD 2-Clause "Simplified" License
1.86k stars 238 forks source link

Int from string #45

Open MikeCongdon1 opened 5 years ago

MikeCongdon1 commented 5 years ago

Adds Int from sql.NullString (super helpful when dealing with id's on databases where the id might not be in a struct used to receive/pass to client). It's helpful for my purposes, though there may be a better way you've found.