NewContent creates a new content
(res *http.Response)
| 9 | |
| 10 | // NewContent creates a new content |
| 11 | func NewContent(res *http.Response) *Content { |
| 12 | var content *Content |
| 13 | if res.Body != nil { |
| 14 | content = &Content{ |
| 15 | Schema: NewSchema(res.Body), |
| 16 | } |
| 17 | } |
| 18 | return content |
| 19 | } |
| 20 | |
| 21 | // UpdateContent updates a content |
| 22 | func (c *Content) UpdateContent(res *http.Response) { |
no test coverage detected