command

package module
v0.1.2 Latest Latest
Warning

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

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

README

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Split

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

Split returns a Command that splits each input line into multiple output lines (1:N expansion). With no options it splits on runs of whitespace (bytes.Fields); with SplitDelim it splits on the literal delimiter (bytes.Split).

Flags:

  • SplitDelim (-d): split each line on this literal delimiter

Types

type SplitDelim

type SplitDelim string

SplitDelim is the -d flag: field delimiter for splitting. When set, bytes.Split is used. When unset, bytes.Fields (whitespace) is used.

const (
	SplitDelimColon     SplitDelim = ":"
	SplitDelimComma     SplitDelim = ","
	SplitDelimDash      SplitDelim = "-"
	SplitDelimDot       SplitDelim = "."
	SplitDelimHash      SplitDelim = "#"
	SplitDelimSemicolon SplitDelim = ";"
	SplitDelimSlash     SplitDelim = "/"
	SplitDelimSpace     SplitDelim = " "
	SplitDelimTab       SplitDelim = "\t"
)

Directories

Path Synopsis
Package alias provides unprefixed type aliases for split command flags.
Package alias provides unprefixed type aliases for split command flags.

Jump to

Keyboard shortcuts

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