Documentation ¶
Index ¶
- func CreateCSVReaderFromIOReadSeeker(file io.ReadSeeker) *csv.Reader
- func CreateCSVReaderFromIOReader(file io.Reader) *csv.Reader
- func SkipBOM(fd io.ReadSeeker) error
- type CsvStruct
- func (r *CsvStruct) Add(s *CsvStruct) error
- func (r *CsvStruct) Append(row []string) error
- func (r *CsvStruct) FindEntry(headerName string, value string) ([]string, int)
- func (r *CsvStruct) FindEntryI(headerIndex int, value string) ([]string, int)
- func (r *CsvStruct) GetValueAtIndex(rowIndex, headerIndex int) (string, error)
- func (r *CsvStruct) HeaderAtIndex(i int) (string, error)
- func (r *CsvStruct) HeaderCount() int
- func (r *CsvStruct) HeaderIndex(headerName string) int
- func (r *CsvStruct) Headers() []string
- func (r *CsvStruct) RowAtIndex(i int) []string
- func (r *CsvStruct) RowCount() int
- func (r *CsvStruct) SetValueAtIndex(rowIndex, headerIndex int, value string) error
- func (r *CsvStruct) Write2File(f string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCSVReaderFromIOReadSeeker ¶
func CreateCSVReaderFromIOReadSeeker(file io.ReadSeeker) *csv.Reader
func SkipBOM ¶
func SkipBOM(fd io.ReadSeeker) error
Types ¶
type CsvStruct ¶
type CsvStruct struct {
// contains filtered or unexported fields
}
func LoadFromCSVReader ¶
LoadFromCSVReader creates csvStruct object from a csv.reader
func LoadFromIOReader ¶
LoadFromIOReader creates csvStruct object from a io.reader
func NewCsvStruct ¶ added in v0.0.2
func (*CsvStruct) FindEntryI ¶
func (*CsvStruct) GetValueAtIndex ¶
func (*CsvStruct) HeaderCount ¶
func (*CsvStruct) HeaderIndex ¶
func (*CsvStruct) RowAtIndex ¶
func (*CsvStruct) SetValueAtIndex ¶
func (*CsvStruct) Write2File ¶
Click to show internal directories.
Click to hide internal directories.