func yieldInpageWidgetFeedbackItems(crc chan InpageWidgetFeedbackStruct, resp *InpageWidgetFeedbackResponse, r *InpageWidgetFeedbackItems, inpageID string) {
	for {
		for _, item := range resp.Items {
			crc <- item
		}
		if !resp.HasMore {
			close(crc)
			return
		}
		params := map[string]string{
			"since": strconv.FormatInt(resp.LastTimestamp, 10),
		}

		resp, err := r.Get(inpageID, params)

		if err != nil {
			panic(err)
		}

		yieldInpageWidgetFeedbackItems(crc, resp, r, inpageID)
		return
	}
}
// yieldInpageWidgetFeedbackItems feeds a inpage results channel with items
//
// while hasMore is true and all items have been consumed in the channel
// a new request is fired using the since parameter of the response, to
// retrieve new items
//
// when HasMore is false, we close the channel
yieldInpageWidgetFeedbackItems feeds a inpage results channel with items

while hasMore is true and all items have been consumed in the channel
a new request is fired using the since parameter of the response, to
retrieve new items

when HasMore is false, we close the channel
// yieldInpageWidgetFeedbackItems feeds a inpage results channel with items // // while hasMore is true and all items have been consumed in the channel // a new request is fired using the since parameter of the response to // retrieve new items // // when HasMore is false we close the channel
func yieldInpageWidgetFeedbackItems(crc chan InpageWidgetFeedbackStruct, resp *InpageWidgetFeedbackResponse, r *InpageWidgetFeedbackItems, inpageID string) {
	for {
		for _, item := range resp.Items {
			crc <- item
		}
		if !resp.HasMore {
			close(crc)
			return
		}
		params := map[string]string{
			"since": strconv.FormatInt(resp.LastTimestamp, 10),
		}
		resp, err := r.Get(inpageID, params)
		if err != nil {
			panic(err)
		}
		yieldInpageWidgetFeedbackItems(crc, resp, r, inpageID)
		return
	}
}
func yieldInpageWidgetFeedbackItems ( crc chan InpageWidgetFeedbackStruct , resp * InpageWidgetFeedbackResponse , r * InpageWidgetFeedbackItems , inpageID string ) { for { for _ , item := range resp . Items { crc <- item } if ! resp . HasMore { close ( crc ) return } params := map [ string ] string { " " : strconv . FormatInt ( resp . LastTimestamp , 10 ) , } resp , err := r . Get ( inpageID , params ) if err != nil { panic ( err ) } yieldInpageWidgetFeedbackItems ( crc , resp , r , inpageID ) return } }
yieldInpageWidgetFeedbackItems feeds a inpage results channel with items
yieldInpageWidgetFeedbackItems feeds a inpage results channel with items