Decode attempts to deserialize the provided data using either the innate typing of the scheme or the default kind, group, and version provided. It returns a decoded object as well as the kind, group, and version from the serialized data, or an error. If into is non-nil, it will be used as the target
(data []byte, into interface{})
| 37 | // provided, they are applied to the data by default. If no defaults or partial defaults are provided, the |
| 38 | // type of the into may be used to guide conversion decisions. |
| 39 | Decode(data []byte, into interface{}) error |
| 40 | } |
| 41 | |
| 42 | // Serializer is the core interface for transforming objects into a serialized format and back. |
no outgoing calls