From 08d3d9aab4845b863d868ca0e43e21c9f7f54203 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 30 Sep 2024 09:36:58 +0200 Subject: Removed the comment coed --- main.go | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/main.go b/main.go index b29b8eb..6e56248 100644 --- a/main.go +++ b/main.go @@ -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? // -- cgit v1.2.3