csv

package
v2.1.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadCode

func ReadCode(filePath string, separator rune, skipHeaderLine bool) ([]models.ReadCsvCode, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL