Skip to content

Commit

Permalink
Merge branch 'master' of github.com:nyaruka/null
Browse files Browse the repository at this point in the history
  • Loading branch information
nicpottier committed Feb 12, 2019
2 parents 7a3aecd + 2984376 commit 58eab92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# null int and string values

This module provides (yet another) alternative in dealing with integers and strings which may be null in your JSON or
database. There are various different approaches to this, namely the built in [https://golang.org/pkg/database/sql/#NullInt64](golang SQL types)
and the [https://github.com/guregu/null](guregu null module) which adds in JSON support. These are fine approaches but
database. There are various different approaches to this, namely the built in [golang SQL types](https://golang.org/pkg/database/sql/#NullInt64)
and the [guregu null module](https://github.com/guregu/null) which adds in JSON support. These are fine approaches but
both suffer from you having to deal with a struct type for your ids instead of a more natural int64 or string. That is fine
in some cases but I prefer to use more primitive types as assignment is more straightforward, simple equality works, etc.

Expand Down

0 comments on commit 58eab92

Please sign in to comment.