diff options
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 11 |
1 files changed, 1 insertions, 10 deletions
@@ -36,7 +36,6 @@ var Ideas []Idea // ToDo's // - [ ] Create a Server out of this so you can run multiple instances -// - [ ] Put a reaction on a post // - [x] edit a post // - [x] Store ideas to a file (encoder/gob) // - [x] Change the date format printing @@ -53,14 +52,6 @@ type Idea struct { Text string Author string CreatedAt string - Comment []Comment -} - -// Represents a comment on an idea -type Comment struct { - Text string - Author string - CreatedAt string } // Data passed to the ideas_html template @@ -168,7 +159,7 @@ func main() { } // TODO (Luca): Make the app more interactive by using websockets instead, - // such that adding, editing or commenting on an idea does not require to + // such that adding or editing does not require to // refresh the page. // Another approach would be to use htmx? // |