JSONPBUnmarshaler is implemented by protobuf messages that customize the way they are unmarshaled from JSON. Messages that implement this should also implement JSONPBMarshaler so that the custom format can be produced. The JSON unmarshaling must follow the JSON to proto specification: https://dev
| 61 | // |
| 62 | // Deprecated: Custom types should implement protobuf reflection instead. |
| 63 | type JSONPBUnmarshaler interface { |
| 64 | UnmarshalJSONPB(*Unmarshaler, []byte) error |
| 65 | } |
| 66 | |
| 67 | // Unmarshal unmarshals a JSON object from r into m. |
| 68 | func (u *Unmarshaler) Unmarshal(r io.Reader, m proto.Message) error { |
no outgoing calls
no test coverage detected