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

Method String

uuid.go:272–276  ·  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

270// String returns the string form of uuid, xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
271// , or "" if uuid is invalid.
272func (uuid UUID) String() string {
273 var buf [36]byte
274 encodeHex(buf[:], uuid)
275 return string(buf[:])
276}
277
278// URN returns the RFC 2141 URN form of uuid,
279// 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