csvToStruct

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CsvColumnsToPayload

type CsvColumnsToPayload[P any] interface {
	ToPayload() (P, error)
}

type CsvDataWithError

type CsvDataWithError struct {
	ErrorMessage string `json:"error_message"`
	Error        string `json:"error"`
	Tag          string `json:"tag"`
	Row          string `json:"row"`
}

func CsvHandler

func CsvHandler[I CsvColumnsToPayload[P], P any](file *os.File) ([]P, []CsvDataWithError, error)

Directories

Path Synopsis
examples
basic command

Jump to

Keyboard shortcuts

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