(id int, text string, priority Priority)
| 248 | } |
| 249 | |
| 250 | func newTask(id int, text string, priority Priority) Task { |
| 251 | return &taskImpl{ |
| 252 | taskNodeImpl: newTaskNode(id), |
| 253 | text: text, |
| 254 | priority: priority, |
| 255 | created: time.Now().UTC(), |
| 256 | completed: time.Time{}, |
| 257 | } |
| 258 | } |
| 259 | |
| 260 | func (t *taskImpl) ID() int { |
| 261 | return t.id |