MCPcopy
hub / github.com/go-chi/chi / NewArticleListResponse

Function NewArticleListResponse

_examples/rest/main.go:378–384  ·  view source on GitHub ↗
(articles []*Article)

Source from the content-addressed store, hash-verified

376}
377
378func 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.

Callers 2

ListArticlesFunction · 0.85
SearchArticlesFunction · 0.85

Calls 1

NewArticleResponseFunction · 0.70

Tested by

no test coverage detected