aboutsummaryrefslogtreecommitdiff
path: root/internal/models/post.go
diff options
context:
space:
mode:
authorSamuel Johnson <[email protected]>2025-11-25 19:47:20 -0500
committerSamuel Johnson <[email protected]>2025-11-25 19:47:20 -0500
commit3c237fc659c2829042407697ca7aa3e1442a5719 (patch)
tree6557b2faa27eb9880ef96c8755bed3f8a461d2ae /internal/models/post.go
parent368a462bc744d8e9084eacfaddeb9afcaf7f7133 (diff)
Add post editing interface
Diffstat (limited to 'internal/models/post.go')
-rw-r--r--internal/models/post.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/internal/models/post.go b/internal/models/post.go
index d7b006d..d7f1aaa 100644
--- a/internal/models/post.go
+++ b/internal/models/post.go
@@ -1,10 +1,15 @@
package models
-import "html/template"
+import (
+ "html/template"
+ "time"
+)
type Post struct {
Id int
Name string
- Time string
+ Time time.Time
+ FormattedTime string
+ Brief template.HTML
Content template.HTML
}