alias

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package alias provides short names for cut command flags.

Index

Constants

View Source
const Complement = command.CutComplement

Complement inverts the selection (--complement flag).

View Source
const NoComplement = command.CutNoComplement

NoComplement disables complement (default).

Variables

This section is empty.

Functions

func Cut

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

Cut selects fields, bytes, or characters from each input line; see the command package for the flag set.

func Fields

func Fields(f ...command.CutField) command.CutFieldsOpt

Fields selects fields by 1-based position (-f flag).

Types

type Bytes

type Bytes = command.CutBytes

Bytes selects bytes by position (-b flag).

type Chars

type Chars = command.CutChars

Chars selects characters (runes) by position (-c flag).

type Delimiter

type Delimiter = command.CutDelimiter

Delimiter sets the field delimiter (-d flag).

Jump to

Keyboard shortcuts

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