summaryrefslogtreecommitdiff
path: root/content/item.go
diff options
context:
space:
mode:
Diffstat (limited to 'content/item.go')
-rw-r--r--content/item.go11
1 files changed, 8 insertions, 3 deletions
diff --git a/content/item.go b/content/item.go
index e96a34e..09f0760 100644
--- a/content/item.go
+++ b/content/item.go
@@ -1,8 +1,13 @@
package content
+import "time"
+
// Item should only be embedded into content type structs.
type Item struct {
- ID int `json:"id"`
- Slug string `json:"slug"`
- Timestamp string `json:"timestamp"`
+ ID int `json:"id"`
+ Slug string `json:"slug"`
+ Time string `json:"time"`
+ Date string `json:"date"`
+ Timestamp time.Time `json:"timestamp"`
+ Updated time.Time `json:"updated"`
}