1
0
mirror of https://github.com/google/uuid.git synced 2024-11-28 08:49:08 +02:00
Commit Graph

9 Commits

Author SHA1 Message Date
Martin Lindhe
1f1ba6fb7a make 'go vet' happy 2017-11-22 06:14:10 +01:00
Andrew Stone
3694829644 sql: Support nil values 2017-03-03 14:59:38 -08:00
Bryan Matsuo
7dd4798941 replace Must* funcs with a single generic Must func
The MustParse and MustNewUUID functions have been removed since they
can be replaced simply using the new function.

    uuid.Must(uuid.Parse(s))
    uuid.Must(uuid.NewUUID())

This also fixes a spurious bug in the UnmarshalJSON method that
prevented compiling the json.go file.
2016-02-25 20:56:08 -08:00
Paul Borman
9e951e1b07 Change a UUID from []byte to [16]byte along with other API changes. 2016-02-19 12:30:25 -08:00
pborman
c3079288a2 Merge pull request #16 from theory/driver.Valuer
Add support for driver.Valuer.
2016-02-09 11:06:20 -08:00
David E. Wheeler
0384d88412 Add support for driver.Valuer.
It just returns a string, but that should be recognizable by any database that
supports UUIDs, since it's the standard format.
2016-02-08 15:47:57 -08:00
Justin Overfelt
c1c74aeb83 Fix broken test and update tests to include coverage for empty uuid scenarios 2016-02-08 18:28:58 -05:00
Justin Overfelt
d4a682d48d Attempt to scan []byte uuids larger than 16 bytes. Fixes #12 2015-11-18 19:54:10 -05:00
Justin Overfelt
7464a2351d Implement database/sql's Scanner interface. Fixes #5 2015-08-24 16:47:56 -04:00