func createCSVs(raw []string, nameResultFolder string, databaseType rune) error {
	var final []Classifier.FinalData
	for _, search := range raw {
		data, err := Classifier.SearchCNJ(search, databaseType)
		if err != nil {
			final = append(final, Classifier.FinalData{
				SearchName: search,
				CNJId:      err.Error(),
				CNJIdUpper: err.Error(),
				CNJName:    err.Error(),
				CnjReturn:  nil,
			})
		} else {
			final = append(final, data)
		}
	}

	err := writeCSV("filesOK", nameResultFolder, final)
	if err != nil {
		return err
	}

	return nil
}
//execute the SearchCNJ from a []string
execute the SearchCNJ from a []string
// execute the SearchCNJ from a [] string
func createCSVs(raw []string, nameResultFolder string, databaseType rune) error {
	var final []Classifier.FinalData
	for _, search := range raw {
		data, err := Classifier.SearchCNJ(search, databaseType)
		if err != nil {
			final = append(final, Classifier.FinalData{
				SearchName: search,
				CNJId:      err.Error(),
				CNJIdUpper: err.Error(),
				CNJName:    err.Error(),
				CnjReturn:  nil,
			})
		} else {
			final = append(final, data)
		}
	}
	err := writeCSV("filesOK", nameResultFolder, final)
	if err != nil {
		return err
	}
	return nil
}
func createCSVs ( raw [ ] string , nameResultFolder string , databaseType rune ) error { var final [ ] Classifier . FinalData for _ , search := range raw { data , err := Classifier . SearchCNJ ( search , databaseType ) if err != nil { final = append ( final , Classifier . FinalData { SearchName : search , CNJId : err . Error ( ) , CNJIdUpper : err . Error ( ) , CNJName : err . Error ( ) , CnjReturn : nil , } ) } else { final = append ( final , data ) } } err := writeCSV ( " " , nameResultFolder , final ) if err != nil { return err } return nil }
execute the SearchCNJ from a []string
execute the SearchCNJ from a [] string