csv

package
v2.3.206 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2025 License: MIT Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 IntSlice added in v2.3.49

type IntSlice []int

func (*IntSlice) MarshalCSV added in v2.3.49

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

func (*IntSlice) UnmarshalCSV added in v2.3.49

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

type StringSlice added in v2.3.49

type StringSlice []string

func (*StringSlice) MarshalCSV added in v2.3.49

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

func (*StringSlice) UnmarshalCSV added in v2.3.49

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

Jump to

Keyboard shortcuts

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