Encoder defines behavior that can encode a data model and provide the content type for that encoding.
| 19 | // Encoder defines behavior that can encode a data model and provide |
| 20 | // the content type for that encoding. |
| 21 | type Encoder interface { |
| 22 | Encode() (data []byte, contentType string, err error) |
| 23 | } |
| 24 | |
| 25 | // HandlerFunc represents a function that handles a http request within our own |
| 26 | // little mini framework. |
no outgoing calls
no test coverage detected