code: func (ctl *taskController) populateState() error {
  	ctl.state = task.State{
  		Status:   ctl.saved.Status,
  		ViewURL:  ctl.saved.ViewURL,
  		TaskData: append([]byte(nil), ctl.saved.TaskData...), // copy
  	}
  	return nil
  }
docs: // populateState populates 'state' using data in 'saved'.