NextStartAt return the index of the first item on the next page
()
| 115 | |
| 116 | // NextStartAt return the index of the first item on the next page |
| 117 | func (cp *CommentPage) NextStartAt() int { |
| 118 | return cp.StartAt + len(cp.Comments) |
| 119 | } |
| 120 | |
| 121 | // IsLastPage return true if there are no more items beyond this page |
| 122 | func (cp *CommentPage) IsLastPage() bool { |
no outgoing calls
no test coverage detected