(dst []byte, uuid UUID)
| 257 | } |
| 258 | |
| 259 | func encodeHex(dst []byte, uuid UUID) { |
| 260 | hex.Encode(dst, uuid[:4]) |
| 261 | dst[8] = '-' |
| 262 | hex.Encode(dst[9:13], uuid[4:6]) |
| 263 | dst[13] = '-' |
| 264 | hex.Encode(dst[14:18], uuid[6:8]) |
| 265 | dst[18] = '-' |
| 266 | hex.Encode(dst[19:23], uuid[8:10]) |
| 267 | dst[23] = '-' |
| 268 | hex.Encode(dst[24:], uuid[10:]) |
| 269 | } |
| 270 | |
| 271 | // Variant returns the variant encoded in uuid. |
| 272 | func (uuid UUID) Variant() Variant { |
no outgoing calls
no test coverage detected