diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-11-08 17:34:05 -0800 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-11-08 17:34:05 -0800 |
commit | 18d80d93a4e06c3958895647b69bd761bd64c65f (patch) | |
tree | d077fc09aa82f00ae3986ccc1b9a1b2c7d9fa7aa /content | |
parent | 7fc144bee449641fb7d135cd6fdf59c8f5869a80 (diff) |
changing pointer to value receiever for Item so there is no confusion around ability to change Item fields in Hook
Diffstat (limited to 'content')
-rw-r--r-- | content/item.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/content/item.go b/content/item.go index cbf38af..0bb3800 100644 --- a/content/item.go +++ b/content/item.go @@ -36,32 +36,32 @@ func (i *Item) SetItemID(id int) { } // BeforeSave is a no-op to ensure structs which embed Item implement Hookable -func (i *Item) BeforeSave(req *http.Request) error { +func (i Item) BeforeSave(req *http.Request) error { return nil } // AfterSave is a no-op to ensure structs which embed Item implement Hookable -func (i *Item) AfterSave(req *http.Request) error { +func (i Item) AfterSave(req *http.Request) error { return nil } // BeforeDelete is a no-op to ensure structs which embed Item implement Hookable -func (i *Item) BeforeDelete(req *http.Request) error { +func (i Item) BeforeDelete(req *http.Request) error { return nil } // AfterDelete is a no-op to ensure structs which embed Item implement Hookable -func (i *Item) AfterDelete(req *http.Request) error { +func (i Item) AfterDelete(req *http.Request) error { return nil } // BeforeReject is a no-op to ensure structs which embed Item implement Hookable -func (i *Item) BeforeReject(req *http.Request) error { +func (i Item) BeforeReject(req *http.Request) error { return nil } // AfterReject is a no-op to ensure structs which embed Item implement Hookable -func (i *Item) AfterReject(req *http.Request) error { +func (i Item) AfterReject(req *http.Request) error { return nil } |