// ConvertID converts the input id to int
// Handle multiple values with format 2-4, 2,3,4
ConvertID converts the input id to int
Handle multiple values with format 2-4, 2,3,4
// ConvertID converts the input id to int // Handle multiple values with format 2 - 4 2 3 4
func ConvertID(args []string) (int, error) {
	var (
		id  int
		err error
	)
	if len(args) == 1 {
		id, err = strconv.Atoi(args[0])
		if err != nil {
			return id, fmt.Errorf("Invalid task ID input - %s \n", args[1])
		}
	} else {
		return id, fmt.Errorf("Invalid task ID input - %v \n\n", strings.Join(args, ", "))
	}
	return id, nil
}
func ConvertID ( args [ ] string ) ( int , error ) { var ( id int err error ) if len ( args ) == 1 { id , err = strconv . Atoi ( args [ 0 ] ) if err != nil { return id , fmt . Errorf ( " \n " , args [ 1 ] ) } } else { return id , fmt . Errorf ( " \n \n " , strings . Join ( args , " " ) ) } return id , nil }
ConvertID converts the input id to int
Handle multiple values with format 2-4, 2,3,4
ConvertID converts the input id to int Handle multiple values with format 2 - 4 2 3 4