summaryrefslogtreecommitdiff
path: root/srv/src/post/post.go
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2022-05-14 17:02:30 -0600
committerBrian Picciano <mediocregopher@gmail.com>2022-05-14 17:02:30 -0600
commite41ff2b897be24a894e75b850f1c06652cc034be (patch)
tree816cc87b789dd96b60f212311e161af1bb583e6a /srv/src/post/post.go
parent4c04177c05355ddb92d3d31a4c5cfbaa86555a13 (diff)
Implement index handler
This involved re-arranging how templates are being parsed, slightly.
Diffstat (limited to 'srv/src/post/post.go')
-rw-r--r--srv/src/post/post.go5
1 files changed, 3 insertions, 2 deletions
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.