// GetTaskByID returns specific task with given ID.
GetTaskByID returns specific task with given ID.
// GetTaskByID returns specific task with given ID .
func (c *Client) GetTaskByID(ID string) (Task, error) {
	tasks, err := c.ListTasks()
	if err != nil {
		return Task{}, err
	}
	for _, task := range tasks {
		if task.ID == ID {
			return task, nil
		}
	}
	return Task{}, fmt.Errorf("task ID %s not found", ID)
}
func ( c * Client ) GetTaskByID ( ID string ) ( Task , error ) { tasks , err := c . ListTasks ( ) if err != nil { return Task { } , err } for _ , task := range tasks { if task . ID == ID { return task , nil } } return Task { } , fmt . Errorf ( " " , ID ) }
GetTaskByID returns specific task with given ID.
GetTaskByID returns specific task with given ID .