iterate

package
v1.0.0-beta.27 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CSVDelimiter        rune
	CSVTrimLeadingSpace bool
	CSVComment          rune
	CSVNoHeader         bool

	ErrDelimiterTooLong = fmt.Errorf("delimiter should be one character")
	ErrCommentTooLong   = fmt.Errorf("comment should be one character")
)
View Source
var (
	ErrNotAllDocsProcessed = fmt.Errorf("not all documents processed")

	BatchSize int32 = 100
)

Functions

func CSVConfigure

func CSVConfigure(delimiter string, comment string, trimLeadingSpace bool, noHeader bool) error

func Input

func Input(ctx context.Context, cmd *cobra.Command, docsPosition int, args []string,
	fn func(ctx2 context.Context, args []string, docs []json.RawMessage) error,
) error

Input reads repeated command parameters from standard input or args. Supports newline delimited stream of objects and arrays of objects.

Types

This section is empty.

Jump to

Keyboard shortcuts

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