Encoding definition of coding interfaces
| 64 | |
| 65 | // Encoding definition of coding interfaces |
| 66 | type Encoding interface { |
| 67 | Marshal(v interface{}) ([]byte, error) |
| 68 | Unmarshal(data []byte, v interface{}) error |
| 69 | } |
| 70 | |
| 71 | // Marshal encode data |
| 72 | func Marshal(e Encoding, v interface{}) (data []byte, err error) { |
nothing calls this directly
no outgoing calls
no test coverage detected