command

package module
v0.1.14 Latest Latest
Warning

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

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

README

Documentation

Index

Constants

View Source
const (
	// SeqEqualWidth (-w): zero-pad every number to equal width.
	SeqEqualWidth seqEqualWidthFlag = true
	// SeqNoEqualWidth is the default: no equal-width padding.
	SeqNoEqualWidth seqEqualWidthFlag = false
)

Variables

This section is empty.

Functions

func Seq

func Seq(args ...any) gloo.Source[[]byte]

Seq returns a Source that generates a numeric sequence, matching GNU seq.

Numeric arguments select the bounds:

  • Seq(last): 1, 2, ..., last (increment 1)
  • Seq(first, last): first, ..., last (increment 1)
  • Seq(first, step, last): first, first+step, ... up to last

Flags:

  • SeqEqualWidth (-w): zero-pad every number to equal width
  • SeqSeparator(s) (-s): join all numbers with s into a single line
  • SeqFormat(f) (-f): printf-style format applied to each number

Types

type SeqFormat

type SeqFormat string

SeqFormat is the -f option value: a printf-style format string applied to each number.

type SeqSeparator

type SeqSeparator string

SeqSeparator is the -s option value: the separator between numbers. When set, all numbers are emitted as a single line joined by this separator.

Directories

Path Synopsis
Package alias provides unprefixed names for the seq command and its flags.
Package alias provides unprefixed names for the seq command and its flags.

Jump to

Keyboard shortcuts

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