String returns the string form of uuid, xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx , or "" if uuid is invalid.
()
| 242 | // String returns the string form of uuid, xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx |
| 243 | // , or "" if uuid is invalid. |
| 244 | func (uuid UUID) String() string { |
| 245 | var buf [36]byte |
| 246 | encodeHex(buf[:], uuid) |
| 247 | return string(buf[:]) |
| 248 | } |
| 249 | |
| 250 | // URN returns the RFC 2141 URN form of uuid, |
| 251 | // urn:uuid:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx, or "" if uuid is invalid. |