config

package
v0.2.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// FilePath is path to file or directory with CSV files which to be checked
	FilePath string `short:"p" long:"path" description:"Path to CSV files"`
	// FirstIsHeader true if first line of CSV is a header, else false
	FirstIsHeader bool `short:"f" long:"firstheader" description:"First is header true or false"`
	// SchemaPath path to schema
	SchemaPath string `short:"s" long:"schema" description:"Path to schema"`

	// Comma is the field delimiter.
	Comma rune
	// CommaString uses to define delimiter in CLI
	CommaString string `short:"c" long:"comma" description:"CSV delimiter"`
	// If LazyQuotes is true, a quote may appear in an unquoted field and a
	// non-doubled quote may appear in a quoted field.
	LazyQuotes bool `short:"l" long:"lazyquotes" description:"Lazy Quotes"`

	// WorkerPoolSize is amount of workers which will be in pool ready to check a file.
	WorkerPoolSize int `short:"w" long:"workers" description:"Worker pool size"`

	ErrFilePath string `short:"e" long:"errpath" description:"Path to the error file"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL