Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InferFormat ¶
InferFormat tries to infer the format of the file from its extension. An empty string is returned in case format cannot be inferred
func ValidateConfig ¶
ValidateConfig validates configuration. nil is returned in case configuration is valid Call InferFormat prior to this function in case format is empty. format argument must not be empty
Types ¶
type Config ¶
type Config struct { // number of random rows to generate Count int // output file OutFile string // output format Format Format Mode Mode ProjectedFields map[string]bool }
func NewConfig ¶
NewConfig creates a new Config object. You shall call ValidateConfig before calling this function
func (*Config) Fields ¶
Fields returns all the fields to be projected if some field has custom format, only its name is returned
func (*Config) SetProjectedFields ¶
Click to show internal directories.
Click to hide internal directories.