commit | be63595eeea563d4007f9ba1ef3ed72674b7eb9d | [log] [tgz] |
---|---|---|
author | Bryan Matsuo <bryan.matsuo@gmail.com> | Fri Feb 12 07:59:08 2016 -0800 |
committer | Bryan Matsuo <bryan.matsuo@gmail.com> | Fri Feb 12 08:02:43 2016 -0800 |
tree | f81cdedd2d03481655b053f1c229f8e75cb91331 | |
parent | 6032e8b8f0d6016762cde70dafc02c5fea129f3a [diff] |
add method Array.String()
diff --git a/uuid.go b/uuid.go index 744330c..82c9e7e 100644 --- a/uuid.go +++ b/uuid.go
@@ -21,6 +21,12 @@ 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