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
| 121 | // By convention, to approximate the behavior of [Unmarshal] itself, |
| 122 | // Unmarshalers implement UnmarshalJSON([]byte("null")) as a no-op. |
| 123 | type 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. |
no outgoing calls
no test coverage detected
searching dependent graphs…