mirror of
https://github.com/google/uuid.git
synced 2025-09-16 09:16:30 +02:00
add method Array.String()
This commit is contained in:
6
uuid.go
6
uuid.go
@@ -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
|
||||
|
Reference in New Issue
Block a user