From e41ff2b897be24a894e75b850f1c06652cc034be Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Sat, 14 May 2022 17:02:30 -0600 Subject: Implement index handler This involved re-arranging how templates are being parsed, slightly. --- srv/src/post/post.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'srv/src/post') diff --git a/srv/src/post/post.go b/srv/src/post/post.go index 5835995..30ded15 100644 --- a/srv/src/post/post.go +++ b/srv/src/post/post.go @@ -58,8 +58,9 @@ type Store interface { // overwrites a previous Post with the same ID, if there was one. Set(post Post, now time.Time) error - // Get returns count StoredPosts, sorted time descending, offset by the given page - // number. The returned boolean indicates if there are more pages or not. + // Get returns count StoredPosts, sorted time descending, offset by the + // given page number. The returned boolean indicates if there are more pages + // or not. Get(page, count int) ([]StoredPost, bool, error) // GetByID will return the StoredPost with the given ID, or ErrPostNotFound. -- cgit v1.2.3