summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-11-07 19:35:40 -0800
committerSteve Manuel <nilslice@gmail.com>2016-11-07 19:35:40 -0800
commite9e9ea47d8bcbdbcf91a2ad822e107d8561a9822 (patch)
tree9b894e42a62cd0f13dcaf0c8ae2298548c9ade05 /content
parent3c1b5d47d3c980d129c0839ddf8682ce80fad3fe (diff)
updating Identifiable interface, renaming its method and changing name where used throughout codebase
Diffstat (limited to 'content')
-rw-r--r--content/item.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/content/item.go b/content/item.go
index 81593b6..d099936 100644
--- a/content/item.go
+++ b/content/item.go
@@ -28,8 +28,8 @@ func (i *Item) SetSlug(slug string) {
i.Slug = slug
}
-// SetContentID sets the Item's ID field
-func (i *Item) SetContentID(id int) {
+// SetItemID sets the Item's ID field
+func (i *Item) SetItemID(id int) {
i.ID = id
}
@@ -46,5 +46,5 @@ type Sluggable interface {
// a newly initialized struct would have an ID of 0, the int zero-value, and
// BoltDB's starting key per bucket is 0, thus overwriting the first record.
type Identifiable interface {
- SetContentID(int)
+ SetItemID(int)
}