Documentation ¶
Index ¶
- Constants
- func GetColumnsWithID(fnode, colunmName string) map[int]*CsvFormat
- func GetColumnsWithLine(fnode, colunmName string) map[int]*CsvFormat
- func GetRowByID(fnode string, number int) map[string]*CsvFormat
- func GetRowByLine(fnode string, line int) map[string]*CsvFormat
- func GetRowsNum(fnode string) int
- func Load() error
- func Loading(ctx context.Context, sec int, report bool)
- func PrintAll() (string, error)
- type Csv
- func (c *Csv) GetColumnsWithID(fnode, colunmName string) map[int]*CsvFormat
- func (c *Csv) GetColumnsWithLine(fnode, colunmName string) map[int]*CsvFormat
- func (c *Csv) GetRowByID(fnode string, number int) map[string]*CsvFormat
- func (c *Csv) GetRowByLine(fnode string, line int) map[string]*CsvFormat
- func (c *Csv) GetRowsNum(fnode string) int
- func (c *Csv) Load() error
- func (c *Csv) Loading(ctx context.Context, sec int, report bool)
- func (c *Csv) PrintAll() (string, error)
- func (c *Csv) SetFolder(folder string) *Csv
- func (c *Csv) Use(files ...string) *Csv
- type CsvFormat
- type Header
Constants ¶
View Source
const ( CsvFormatType_Int = iota CsvFormatType_Float CsvFormatType_String CsvFormatType_Int_Array CsvFormatType_Int_Array2 )
Variables ¶
This section is empty.
Functions ¶
func GetColumnsWithID ¶
func GetColumnsWithLine ¶
func GetRowsNum ¶
Types ¶
type Csv ¶
type Csv struct {
// contains filtered or unexported fields
}
func NewCsvReader ¶
func (*Csv) GetColumnsWithID ¶
func (*Csv) GetColumnsWithLine ¶
func (*Csv) GetRowsNum ¶
type CsvFormat ¶
type CsvFormat struct {
// contains filtered or unexported fields
}
func NewCsvFormat ¶
func (*CsvFormat) ToFloat64 ¶
The corresponding type must be accurate, and if the type does not correspond, the preparation cannot be guaranteed.
func (*CsvFormat) ToInt ¶
The corresponding type must be accurate, and if the type does not correspond, the preparation cannot be guaranteed.
func (*CsvFormat) ToIntSlice ¶
The corresponding type must be accurate, and if the type does not correspond, the preparation cannot be guaranteed.
func (*CsvFormat) ToIntSlice2 ¶
The corresponding type must be accurate, and if the type does not correspond, the preparation cannot be guaranteed.
Click to show internal directories.
Click to hide internal directories.