String returns the string form of uuid, xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx , or "" if uuid is invalid.
()
| 270 | // String returns the string form of uuid, xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx |
| 271 | // , or "" if uuid is invalid. |
| 272 | func (uuid UUID) String() string { |
| 273 | var buf [36]byte |
| 274 | encodeHex(buf[:], uuid) |
| 275 | return string(buf[:]) |
| 276 | } |
| 277 | |
| 278 | // URN returns the RFC 2141 URN form of uuid, |
| 279 | // urn:uuid:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx, or "" if uuid is invalid. |