String returns a canonical RFC-9562 string representation of the UUID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.
()
| 249 | // String returns a canonical RFC-9562 string representation of the UUID: |
| 250 | // xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. |
| 251 | func (u UUID) String() string { |
| 252 | var buf [36]byte |
| 253 | encodeCanonical(buf[:], u) |
| 254 | return string(buf[:]) |
| 255 | } |
| 256 | |
| 257 | // Format implements fmt.Formatter for UUID values. |
| 258 | // |