summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
Diffstat (limited to 'content')
-rw-r--r--content/item.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/content/item.go b/content/item.go
index 7b25b14..7bb25db 100644
--- a/content/item.go
+++ b/content/item.go
@@ -7,3 +7,8 @@ type Item struct {
Timestamp int64 `json:"timestamp"`
Updated int64 `json:"updated"`
}
+
+// Time implements the Sortable interface
+func (i Item) Time() int64 {
+ return i.Timestamp
+}