Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CSV ¶
func (*CSV) BuildInputs ¶
BuildInputs is the same as BuildInputs, but it takes a schema to ensure that the input is valid. If the input is invalid, it will return an error. The function takes an action, as well as a map mapping the CSV column name to the action input name.
func (*CSV) ForEachRecord ¶
ForEachRecord will loop through each record in the CSV and call the function with the record as a map of the CSV column name to value.
func (*CSV) GetColumnIndex ¶
GetColumnIndex returns the index of the column in the CSV. If the column doesn't exist, it will return -1.
Click to show internal directories.
Click to hide internal directories.