Documentation ¶
Index ¶
- type CSV
- func (c *CSV) Close() error
- func (c *CSV) FindAll(s string, fuzzy bool) (indexes []Value, err error)
- func (c *CSV) FindFirst(s string, fuzzy bool) (value Value, err error)
- func (c *CSV) FindLast(value string, fuzzy bool) (index Value, err error)
- func (c *CSV) Open(filename string) error
- func (c *CSV) Reset() error
- func (c *CSV) Row() (r Row, isEOF bool, err error)
- func (c *CSV) SaveAs(filename string, records [][]string) error
- type Column
- func (c *Column) Do(f func(s string) string) *Column
- func (c *Column) IsBlank() bool
- func (c *Column) IsEmpty() bool
- func (c *Column) IsNull() bool
- func (c *Column) String() string
- func (c *Column) ToBool(defaultValue ...string) (bool, error)
- func (c *Column) ToBytes(defaultValue ...string) []byte
- func (c *Column) ToFloat32(defaultValue ...string) (float32, error)
- func (c *Column) ToFloat64(defaultValue ...string) (float64, error)
- func (c *Column) ToInt(defaultValue ...string) (int, error)
- func (c *Column) ToInt16(defaultValue ...string) (int16, error)
- func (c *Column) ToInt32(defaultValue ...string) (int32, error)
- func (c *Column) ToInt64(defaultValue ...string) (int64, error)
- func (c *Column) ToInt8(defaultValue ...string) (int8, error)
- func (c *Column) ToTime(layout string, loc *time.Location, defaultValue ...string) (time.Time, error)
- func (c *Column) TrimSpace() *Column
- type Row
- type Rows
- type Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CSV ¶
func (*CSV) Reset ¶ added in v1.0.4
Reset resets to the file header, and set new Reader, used to re-read the file
type Column ¶
type Column struct { OriginalValue string // Original value NewValue string // New value process after // contains filtered or unexported fields }
Column line of data in file
Click to show internal directories.
Click to hide internal directories.