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

Method String

uuid.go:251–255  ·  view source on GitHub ↗

String returns a canonical RFC-9562 string representation of the UUID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.

()

Source from the content-addressed store, hash-verified

249// String returns a canonical RFC-9562 string representation of the UUID:
250// xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.
251func (u UUID) String() string {
252 var buf [36]byte
253 encodeCanonical(buf[:], u)
254 return string(buf[:])
255}
256
257// Format implements fmt.Formatter for UUID values.
258//

Callers 15

ValueMethod · 0.95
FormatMethod · 0.95
testNewV3BasicFunction · 0.80
testNewV5BasicFunction · 0.80
testNewV6KSortableFunction · 0.80
makeTestNewV7TestVectorFunction · 0.80
makeTestNewV7KSortableFunction · 0.80
testSQLValueFunction · 0.80
testUUIDStringFunction · 0.80
BenchmarkStringFunction · 0.80
BenchmarkUnmarshalTextFunction · 0.80

Calls 1

encodeCanonicalFunction · 0.85

Tested by 14

testNewV3BasicFunction · 0.64
testNewV5BasicFunction · 0.64
testNewV6KSortableFunction · 0.64
makeTestNewV7TestVectorFunction · 0.64
makeTestNewV7KSortableFunction · 0.64
testSQLValueFunction · 0.64
testUUIDStringFunction · 0.64
BenchmarkStringFunction · 0.64
BenchmarkUnmarshalTextFunction · 0.64
FuzzFromBytesFuncFunction · 0.64
FuzzFromBytesOrNilFuncFunction · 0.64