(articles []*Article)
| 376 | } |
| 377 | |
| 378 | func NewArticleListResponse(articles []*Article) []render.Renderer { |
| 379 | list := []render.Renderer{} |
| 380 | for _, article := range articles { |
| 381 | list = append(list, NewArticleResponse(article)) |
| 382 | } |
| 383 | return list |
| 384 | } |
| 385 | |
| 386 | // NOTE: as a thought, the request and response payloads for an Article could be the |
| 387 | // same payload type, perhaps will do an example with it as well. |
no test coverage detected