MCPcopy Create free account
hub / github.com/dolthub/doltgresql / UnmarshalJSON

Method UnmarshalJSON

postgres/parser/uuid/uuid_wrapper.go:99–107  ·  view source on GitHub ↗

UnmarshalJSON unmarshals the JSON encoded data into u.

(data []byte)

Source from the content-addressed store, hash-verified

97
98// UnmarshalJSON unmarshals the JSON encoded data into u.
99func (u *UUID) UnmarshalJSON(data []byte) error {
100 var uuidString string
101 if err := json.Unmarshal(data, &uuidString); err != nil {
102 return err
103 }
104 uuid, err := FromString(uuidString)
105 *u = uuid
106 return err
107}
108
109// defaultRandReader is an io.Reader that calls through to "math/rand".Read
110// which is safe for concurrent use.

Callers

nothing calls this directly

Calls 2

FromStringFunction · 0.70
UnmarshalMethod · 0.65

Tested by

no test coverage detected