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

add method Array.String()

This commit is contained in:
Bryan Matsuo 2016-02-12 07:59:08 -08:00
parent 6032e8b8f0
commit be63595eee

View File

@ -21,6 +21,12 @@ func (uuid Array) UUID() UUID {
return uuid[:]
}
// String returns the string representation of uuid,
// xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.
func (uuid Array) String() string {
return uuid.UUID().String()
}
// A UUID is a 128 bit (16 byte) Universal Unique IDentifier as defined in RFC
// 4122.
type UUID []byte