diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-10-17 14:30:30 -0700 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-10-17 14:30:30 -0700 |
commit | 48f47310204df4cb1bdb5ee8db761ab942b20527 (patch) | |
tree | 17d60a09a95ef14d962e37d1b1f0a5089ea43f9c /content | |
parent | 4b85ce4b24c5ae2ed6ca3f5f23af92b988e9f4b2 (diff) |
adding initial updates to provide better time recording for post editing & creation
Diffstat (limited to 'content')
-rw-r--r-- | content/item.go | 11 |
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"` } |