Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CSVService ¶
type CSVService interface { ReadCSVData() ([][]string, error) MapCsvResponse(data [][]string) []model.AIProject }
CSVService defines the interface for reading data from a CSV file
type CSVServiceImpl ¶
type CSVServiceImpl struct { }
CSVServiceImpl is an implementation of the CSVService interface
func InitService ¶
func InitService() *CSVServiceImpl
func (*CSVServiceImpl) MapCsvResponse ¶
func (service *CSVServiceImpl) MapCsvResponse(data [][]string) []model.AIProject
func (*CSVServiceImpl) ReadCSVData ¶
func (service *CSVServiceImpl) ReadCSVData(filepath string) ([]model.AIProject, error)
ReadCSVData reads data from a CSV file and returns the data as a slice of CSVData
Click to show internal directories.
Click to hide internal directories.