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

Function encodeHex

uuid.go:259–269  ·  view source on GitHub ↗
(dst []byte, uuid UUID)

Source from the content-addressed store, hash-verified

257}
258
259func 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.
272func (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