// this does not read the query parameters, which you would do to limit the result in real world usage
this does not read the query parameters, which you would do to limit the result in real world usage
// this does not read the query parameters which you would do to limit the result in real world usage
func (s *fixtureSource) PaginatedFindAll(req Request) (uint, Responder, error) {
	if s.pointers {
		postsSlice := []*Post{}
		for _, post := range s.posts {
			postsSlice = append(postsSlice, post)
		}
		return uint(len(s.posts)), &Response{Res: postsSlice}, nil
	}
	postsSlice := []Post{}
	for _, post := range s.posts {
		postsSlice = append(postsSlice, *post)
	}
	return uint(len(s.posts)), &Response{Res: postsSlice}, nil
}
func ( s * fixtureSource ) PaginatedFindAll ( req Request ) ( uint , Responder , error ) { if s . pointers { postsSlice := [ ] * Post { } for _ , post := range s . posts { postsSlice = append ( postsSlice , post ) } return uint ( len ( s . posts ) ) , & Response { Res : postsSlice } , nil } postsSlice := [ ] Post { } for _ , post := range s . posts { postsSlice = append ( postsSlice , * post ) } return uint ( len ( s . posts ) ) , & Response { Res : postsSlice } , nil }
this does not read the query parameters, which you would do to limit the result in real world usage
this does not read the query parameters which you would do to limit the result in real world usage