fromtsv

package
v0.1.23 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ErrTSV marks a TSV parse failure.
	ErrTSV errs.Const = "tsv"
	// ErrJSON marks a JSON encoding failure.
	ErrJSON errs.Const = "json"
)

The package's error vocabulary: errs.Const sentinels matched with errors.Is.

View Source
const (
	FromTSVWithHeader    fromTSVNoHeader   = false
	FromTSVWithoutHeader fromTSVNoHeader   = true
	FromTSVNoTrim        fromTSVTrimSpaces = false
	FromTSVTrim          fromTSVTrimSpaces = true
)

Variables

This section is empty.

Functions

func FromTsv

func FromTsv(opts ...any) gloo.Command[[]byte, []byte]

FromTsv returns a command that converts TSV (tab-separated) input into newline-delimited JSON: each row becomes one compact JSON object keyed by the column headers.

Flags:

  • FromTSVWithoutHeader: treat every row as data and synthesize col1, col2…
  • FromTSVTrim: trim leading whitespace in each field

Types

This section is empty.

Jump to

Keyboard shortcuts

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