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

Method Value

null.go:52–58  ·  view source on GitHub ↗

Value implements the driver Valuer interface.

()

Source from the content-addressed store, hash-verified

50
51// Value implements the driver Valuer interface.
52func (nu NullUUID) Value() (driver.Value, error) {
53 if !nu.Valid {
54 return nil, nil
55 }
56 // Delegate to UUID Value function
57 return nu.UUID.Value()
58}
59
60// MarshalBinary implements encoding.BinaryMarshaler.
61func (nu NullUUID) MarshalBinary() ([]byte, error) {

Callers 1

TestNullUUIDValueFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestNullUUIDValueFunction · 0.76