(dst []byte, uuid UUID)
| 285 | } |
| 286 | |
| 287 | func encodeHex(dst []byte, uuid UUID) { |
| 288 | hex.Encode(dst, uuid[:4]) |
| 289 | dst[8] = '-' |
| 290 | hex.Encode(dst[9:13], uuid[4:6]) |
| 291 | dst[13] = '-' |
| 292 | hex.Encode(dst[14:18], uuid[6:8]) |
| 293 | dst[18] = '-' |
| 294 | hex.Encode(dst[19:23], uuid[8:10]) |
| 295 | dst[23] = '-' |
| 296 | hex.Encode(dst[24:], uuid[10:]) |
| 297 | } |
| 298 | |
| 299 | // Variant returns the variant encoded in uuid. |
| 300 | func (uuid UUID) Variant() Variant { |
no outgoing calls
no test coverage detected