Documentation ¶
Index ¶
- func ReadCode(filePath string, separator rune, skipHeaderLine bool) ([]models.ReadCsvCode, error)
- func ReadLawsuit(filePath string, separator rune, skipHeaderLine bool) ([]models.ReadCsvLaawsuit, error)
- func WriteCode(fileName string, folderName string, responses []models.ResponseBodyNextPage) error
- func WriteLawsuits(fileName string, folderName string, responses []models.ResponseBodyLawsuit) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadCode ¶
The ReadCode function reads data from a CSV file located at the specified filePath, with the specified separator. It returns a slice of models.ReadCsvCode structs containing the data from the CSV file, excluding the header.
func ReadLawsuit ¶
func ReadLawsuit(filePath string, separator rune, skipHeaderLine bool) ([]models.ReadCsvLaawsuit, error)
The ReadLawsuit function reads data from a CSV file located at the specified filePath, with the specified separator. It returns a slice of models.ReadCsvLaawsuit structs containing the data from the CSV file, excluding the header.
func WriteCode ¶
func WriteCode(fileName string, folderName string, responses []models.ResponseBodyNextPage) error
WriteCode writes two CSV files with the given file name and folder name, and the data from the responses. One file for the Lawsuits and another for the lawsuit movements
func WriteLawsuits ¶
func WriteLawsuits(fileName string, folderName string, responses []models.ResponseBodyLawsuit) error
WriteLawsuits writes two CSV files with the given file name and folder name, and the data from the responses. One file for the Lawsuits and another for the lawsuit movements
Types ¶
This section is empty.