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

Method String

uuid.go:244–248  ·  uuid.go::UUID.String

String returns the string form of uuid, xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx , or "" if uuid is invalid.

()

Source from the content-addressed store, hash-verified

242// String returns the string form of uuid, xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
243// , or "" if uuid is invalid.
244func (uuid UUID) String() string {
245 var buf [36]byte
246 encodeHex(buf[:], uuid)
247 return string(buf[:])
248}
249
250// URN returns the RFC 2141 URN form of uuid,
251// urn:uuid:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx, or "" if uuid is invalid.

Callers 15

ValueMethod · 0.95
TestCodingFunction · 0.95
NewStringFunction · 0.45
TestClockSeqRaceFunction · 0.45
TestConstantsFunction · 0.45
TestRandomUUIDFunction · 0.45
TestRandomUUID_PooledFunction · 0.45
TestNewFunction · 0.45
TestMD5Function · 0.45
TestSHA1Function · 0.45
BenchmarkUUID_StringFunction · 0.45
TestVersion7Function · 0.45

Calls 1

encodeHexFunction · 0.85

Tested by 13

TestCodingFunction · 0.76
TestClockSeqRaceFunction · 0.36
TestConstantsFunction · 0.36
TestRandomUUIDFunction · 0.36
TestRandomUUID_PooledFunction · 0.36
TestNewFunction · 0.36
TestMD5Function · 0.36
TestSHA1Function · 0.36
BenchmarkUUID_StringFunction · 0.36
TestVersion7Function · 0.36
TestVersion7_pooledFunction · 0.36
TestVersion7MonotonicityFunction · 0.36