Encoding 编码接口定义
| 63 | |
| 64 | // Encoding 编码接口定义 |
| 65 | type Encoding interface { |
| 66 | Marshal(v interface{}) ([]byte, error) |
| 67 | Unmarshal(data []byte, v interface{}) error |
| 68 | } |
| 69 | |
| 70 | // Marshal encode data |
| 71 | func Marshal(e Encoding, v interface{}) (data []byte, err error) { |
nothing calls this directly
no outgoing calls
no test coverage detected