seq

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunSeq

func RunSeq(w io.Writer, args []string, opts SeqOptions) error

RunSeq prints a sequence of numbers

Types

type SeqOptions

type SeqOptions struct {
	Separator  string // -s: use STRING to separate numbers
	Format     string // -f: use printf style FORMAT
	EqualWidth bool   // -w: equalize width by padding with leading zeros
	JSON       bool   // --json: output as JSON
}

SeqOptions configures the seq command behavior

type SeqResult

type SeqResult struct {
	Numbers []float64 `json:"numbers"`
	Count   int       `json:"count"`
}

SeqResult represents seq output for JSON

Jump to

Keyboard shortcuts

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