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:
parent
6032e8b8f0
commit
be63595eee
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
|
||||
|
Loading…
Reference in New Issue
Block a user