aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd/http/load.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/http/load.go b/cmd/http/load.go
index a94cbeb..d63d7ce 100644
--- a/cmd/http/load.go
+++ b/cmd/http/load.go
@@ -7,6 +7,7 @@ import (
"strings"
)
+// Post struct contains necessary data for a post
type Post struct {
FileName string
Title string
@@ -15,6 +16,7 @@ type Post struct {
Image string
}
+// Posts stuct contains a collection of type Post
type Posts struct {
Contents []*Post
}