Documentation ¶
Index ¶
- func AddInput(table, column string, line []string, files map[string]model.CSVFile)
- func AddTable(table model.Table, column string, line []string, ...)
- func CartesianProduct(a ...[]string) [][]string
- func Transpose(m [][]string) [][]string
- type ConstGenerator
- type EachGenerator
- type Formatter
- type FormatterProcessor
- type GenGenerator
- type IncGenerator
- type MatchGenerator
- type RangeGenerator
- type RefGenerator
- type SetGenerator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CartesianProduct ¶
CartesianProduct returns the Cartesian product of a variable number of arrays.
Types ¶
type ConstGenerator ¶
type ConstGenerator struct {
Values []string `yaml:"values"`
}
ConstGenerator provides additional context to a const column.
type EachGenerator ¶
EachGenerator provides additional context to an each or ref column.
type Formatter ¶
Formatter determines the behaviour for anything that can take a format string and return another.
type FormatterProcessor ¶
type FormatterProcessor interface {
GetFormat() string
}
FormatterProcessor can be called to get the Format string out of a struct that implements this interface.
type GenGenerator ¶
type GenGenerator struct { Value string `yaml:"value"` Pattern string `yaml:"pattern"` NullPercentage int `yaml:"null_percentage"` Format string `yaml:"format"` // contains filtered or unexported fields }
GenGenerator provides additional context to a gen column.
func (GenGenerator) GetFormat ¶
func (g GenGenerator) GetFormat() string
type IncGenerator ¶
IncGenerator provides additional context to an inc column.
func (IncGenerator) GetFormat ¶
func (pi IncGenerator) GetFormat() string
type MatchGenerator ¶
type MatchGenerator struct { SourceTable string `yaml:"source_table"` SourceColumn string `yaml:"source_column"` SourceValue string `yaml:"source_value"` MatchColumn string `yaml:"match_column"` }
MatchGenerator provides additional context to a match column.
type RangeGenerator ¶
type RangeGenerator struct { Type string `yaml:"type"` From string `yaml:"from"` To string `yaml:"to"` Step string `yaml:"step"` Format string `yaml:"format"` }
RangeGenerator provides additional context to a range column.
type RefGenerator ¶
RefGenerator provides additional context to a ref column.
type SetGenerator ¶
SetGenerator provides additional context to a set column.