summaryrefslogtreecommitdiff
path: root/content/item.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-10-18 13:17:24 -0700
committerSteve Manuel <nilslice@gmail.com>2016-10-18 13:17:24 -0700
commit77f90cb5f1db80e8f94df905453beac6cee8022b (patch)
treeffca684f49463d765e18ee482c0c6349fbb64493 /content/item.go
parentd7f41f06a68cd16e94cb64f69b531377d4181c08 (diff)
adding ContentID to interface Sortable.. it is duplicating method in both Editable and Sortable.. we will see if this is an issue later down the line...
Diffstat (limited to 'content/item.go')
-rw-r--r--content/item.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/content/item.go b/content/item.go
index 7bb25db..79d0197 100644
--- a/content/item.go
+++ b/content/item.go
@@ -8,7 +8,12 @@ type Item struct {
Updated int64 `json:"updated"`
}
-// Time implements the Sortable interface
+// Time partially implements the Sortable interface
func (i Item) Time() int64 {
return i.Timestamp
}
+
+// ContentID partially implements the Sortable interface
+func (i Item) ContentID() int {
+ return i.ID
+}