Documentation ¶
Index ¶
Constants ¶
View Source
const Separator = ","
Separator for CSV. Not configurable for now.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { KeyPositions []int Key Positions Value Positions Reader io.Reader Writer io.Writer SourceMap bool }
Config represents configurations that can be passed to create a Digest.
type Digest ¶
Digest represents the binding of the key of each csv line and the digest that gets created for the entire line
type Positions ¶
type Positions []int
Positions represents positions of columns in a CSV array.
func (Positions) MapToValue ¶
MapToValue plucks the values from CSV from their respective positions and concatenates them using Separator as a string.
Click to show internal directories.
Click to hide internal directories.