csv

package
v2.3.24 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrReadingFile       = apperr.New("reading_file_error", apperr.WithTextTranslate(translator.Translate{translator.RU: "Ошибка чтения файла", translator.EN: "Error reading file"}), apperr.WithCode(code.InvalidArgument))
	ErrInvalidFileFormat = apperr.New("invalid_file_format", apperr.WithTextTranslate(translator.Translate{translator.RU: "Неверный формат файла", translator.EN: "Invalid file format"}), apperr.WithCode(code.InvalidArgument))
	ErrInvalidFieldCount = apperr.New("invalid_field_count", apperr.WithTextTranslate(translator.Translate{translator.RU: "Неверное количество полей", translator.EN: "Invalid field count"}), apperr.WithCode(code.InvalidArgument))
)

Functions

func UnMarshalCSVFromFile

func UnMarshalCSVFromFile[T any](file *multipart.FileHeader) ([]T, error)

Types

type IDs added in v2.3.1

type IDs []int

func (*IDs) MarshalCSV added in v2.3.1

func (m *IDs) MarshalCSV() ([]byte, error)

func (*IDs) UnmarshalCSV added in v2.3.1

func (m *IDs) UnmarshalCSV(data []byte) error

Jump to

Keyboard shortcuts

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