Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add JSON (Un)marshaling methods on NullUUID type #38

Merged
merged 2 commits into from
Jul 23, 2018

Commits on Mar 31, 2017

  1. Configuration menu
    Copy the full SHA
    b99e53e View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2018

  1. 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>
    theckman committed Jul 23, 2018
    Configuration menu
    Copy the full SHA
    a30993e View commit details
    Browse the repository at this point in the history