diff options
author | Alex <alex@scerba.org> | 2024-03-13 17:21:32 -0400 |
---|---|---|
committer | Alex Scerba <alex@scerba.org> | 2024-10-29 13:20:01 -0400 |
commit | 18ae039785628c8fe5ac40f4ca1942659f63f528 (patch) | |
tree | ab77506e8f25d70f9eb802e17dcb5f3c8ac8a467 /cmd/http | |
parent | 2a6e37c91e15836b6bdc2b366cf5d679679189a8 (diff) |
Add comments
Diffstat (limited to 'cmd/http')
-rw-r--r-- | cmd/http/load.go | 2 |
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 } |