From 5b2097cd2ed016f78ae2c2bcc068dfe3f42e44bd Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Fri, 27 Sep 2024 14:37:29 +0200 Subject: Added datafile for persistent ideas The data file uses a version number for debugging and is serialized into a data file, for now this is good enough but because of encapsulating the data in a struct there is no convenient way of appending to the Ideas slice. - Removed the Rating as it is not really constructive. - Added handling of SIGINT to keep the data even on exit from air of Ctrl-c - Removed example data - Use log instaed of fmt everywhere - Removed Makefile --- ideas.html | 1 - 1 file changed, 1 deletion(-) (limited to 'ideas.html') diff --git a/ideas.html b/ideas.html index 14e86d3..284924d 100644 --- a/ideas.html +++ b/ideas.html @@ -45,7 +45,6 @@ {{ range .Ideas }}

{{.Title}}

-

{{.Rating}}/5

{{.Description}}

by {{.Author}} on {{.CreatedAt}}

-- cgit v1.2.3