1
0
mirror of https://github.com/google/uuid.git synced 2024-11-24 08:32:23 +02:00
Go package for UUIDs based on RFC 4122 and DCE 1.1: Authentication and Security Services.
Go to file
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
.travis.yml Add travis-ci configuration for testing. 2016-02-09 10:27:59 -08:00
CONTRIBUTING.md Change a UUID from []byte to [16]byte along with other API changes. 2016-02-19 12:30:25 -08:00
CONTRIBUTORS Change a UUID from []byte to [16]byte along with other API changes. 2016-02-19 12:30:25 -08:00
dce.go Change a UUID from []byte to [16]byte along with other API changes. 2016-02-19 12:30:25 -08:00
doc.go Change a UUID from []byte to [16]byte along with other API changes. 2016-02-19 12:30:25 -08:00
hash.go replace Must* funcs with a single generic Must func 2016-02-25 20:56:08 -08:00
json_test.go replace Must* funcs with a single generic Must func 2016-02-25 20:56:08 -08:00
LICENSE Move code up one directory 2015-06-03 14:39:07 -07:00
marshal.go Change a UUID from []byte to [16]byte along with other API changes. 2016-02-19 12:30:25 -08:00
node.go Change a UUID from []byte to [16]byte along with other API changes. 2016-02-19 12:30:25 -08:00
README.md Update readme to make sure people know the API might change. 2016-02-19 12:57:29 -08:00
seq_test.go replace Must* funcs with a single generic Must func 2016-02-25 20:56:08 -08:00
sql_test.go replace Must* funcs with a single generic Must func 2016-02-25 20:56:08 -08:00
sql.go Change a UUID from []byte to [16]byte along with other API changes. 2016-02-19 12:30:25 -08:00
time.go Change a UUID from []byte to [16]byte along with other API changes. 2016-02-19 12:30:25 -08:00
util.go Change a UUID from []byte to [16]byte along with other API changes. 2016-02-19 12:30:25 -08:00
uuid_test.go Change a UUID from []byte to [16]byte along with other API changes. 2016-02-19 12:30:25 -08:00
uuid.go replace Must* funcs with a single generic Must func 2016-02-25 20:56:08 -08:00
version1.go replace Must* funcs with a single generic Must func 2016-02-25 20:56:08 -08:00
version4.go Change a UUID from []byte to [16]byte along with other API changes. 2016-02-19 12:30:25 -08:00

This package is currently in development and the API may not be stable.

The API will become stable with v1.

uuid build status

The uuid package generates and inspects UUIDs based on RFC 412 and DCE 1.1: Authentication and Security Services.

This package is based on the github.com/pborman/uuid package (previously named code.google.com/p/go-uuid). It differs from these earlier packages in that a UUID is a 16 byte array rather than a byte slice. One loss due to this change is the ability to represent an invalid UUID (vs a NIL UUID).

Install

go get github.com/google/uuid

Documentation

GoDoc

Full go doc style documentation for the package can be viewed online without installing this package by using the GoDoc site here: http://godoc.org/github.com/google/uuid