Skip to main content Link Search Menu Expand Document (external link)

FromRange

func FromRange[T constraints.Integer](pipeline *Pipeline, start T, end T) *Channel[T]

FromRange creates a Channel from a range of integers. All integers between start and end (both inclusive) are sent to the channel in order.

Example

channel := FromSlice(pipeline, 1, 3)