func (r *PostRepository) Update(post *core.Post) error { _, err := dat.Update(r, post.ID(), post) if err != nil { log.Printf("Error updating post: %s", err) } return err }