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 ¶
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.
Click to show internal directories.
Click to hide internal directories.