fromtsv

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

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

type Error

type Error string

Error is the sentinel error type for the fromtsv package.

func (Error) Error

func (e Error) Error() string

Jump to

Keyboard shortcuts

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