priority of marshaler and unmarshaler (default is json). - - - - - - - - - - - - - - - - - - - - - - | | marshaler | unmarshaler | | higher | | ^ | MarshalerTo | UnmarshalerFrom | | | | Marshaler | Unmarshaler | | | | JSON Marshal| JSON Unmarshal | | lower |
| 98 | // can marshal themselves into bytes, second parameter |
| 99 | // is content type. |
| 100 | Marshaler interface { |
| 101 | Marshal() ([]byte, string, error) |
| 102 | } |
| 103 | // MarshalerTo is the interface implemented by types that |
| 104 | // can marshal themselves into writer, the first parameter |
| 105 | // is content type. (Not Recommended). |
no outgoing calls
no test coverage detected