command

package module
v0.1.23 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 License: MIT Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址