MCPcopy
hub / github.com/google/uuid / encodeHex

Function encodeHex

uuid.go:287–297  ·  uuid.go::encodeHex
(dst []byte, uuid UUID)

Source from the content-addressed store, hash-verified

285}
286
287func 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.
300func (uuid UUID) Variant() Variant {

Callers 3

MarshalTextMethod · 0.85
StringMethod · 0.85
URNMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected