seq

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sequence

type Sequence interface {
	// Items returns a channel containing all the sequence items.
	Items() <-chan string

	// WidthExceeded returns true if the an out of bounds error has occurred.
	WidthExceeded() bool
}

Sequence is implemented by types that generate sequence of strings.

func NewInt

func NewInt(start int, incr uint, end int, width uint) Sequence

NewInt creates a new string sequence of integers. Strings will not be padded if width is 0.

Jump to

Keyboard shortcuts

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