summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-10-17 19:30:46 -0700
committerSteve Manuel <nilslice@gmail.com>2016-10-17 19:30:46 -0700
commitf8918babe3730b2f47b3a25c5e4d3b892afd8cc6 (patch)
tree026ba3e27972bc60291739f4ea040fd2e06fa466 /content
parent2a67b80c61a49b26c273a58d67c2cef9e7b549e7 (diff)
testing int64 type for timestamp & update
Diffstat (limited to 'content')
-rw-r--r--content/item.go10
1 files changed, 4 insertions, 6 deletions
diff --git a/content/item.go b/content/item.go
index c9aa423..7b25b14 100644
--- a/content/item.go
+++ b/content/item.go
@@ -1,11 +1,9 @@
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 time.Time `json:"timestamp"`
- Updated time.Time `json:"updated"`
+ ID int `json:"id"`
+ Slug string `json:"slug"`
+ Timestamp int64 `json:"timestamp"`
+ Updated int64 `json:"updated"`
}