-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adapt satori/go.uuid#44 for our fork
This commit adapts satori/go.uuid#44 for our fork of the original project. This brings JSON Marshaling and Unmarshaling to the `uuid.NullUUID` type used for use with SQL databases. This is needed because `uuid.NullUUID` is a shim around `uuid.UUID`, providing the information needed by the `database/sql` package to support storing the value in a nullable column. Without these methods, the type gets converted unnecessarily to a different format than the standard `uuid.UUID` type. Signed-off-by: Tim Heckman <t@heckman.io>
- Loading branch information
Showing
2 changed files
with
220 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters