MCPcopy
hub / github.com/openai/openai-go / Unmarshaler

Interface Unmarshaler

internal/encoding/json/decode.go:123–125  ·  view source on GitHub ↗

Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. The input can be assumed to be a valid encoding of a JSON value. UnmarshalJSON must copy the JSON data if it wishes to retain the data after returning. By convention, to approximate the behavior o

Source from the content-addressed store, hash-verified

121// By convention, to approximate the behavior of [Unmarshal] itself,
122// Unmarshalers implement UnmarshalJSON([]byte("null")) as a no-op.
123type Unmarshaler interface {
124 UnmarshalJSON([]byte) error
125}
126
127// An UnmarshalTypeError describes a JSON value that was
128// not appropriate for a value of a specific Go type.

Callers 7

arrayMethod · 0.65
objectMethod · 0.65
literalStoreMethod · 0.65
unmarshalerDecoderFunction · 0.65
newStructTypeDecoderMethod · 0.65
newOptTypeDecoderMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…