stage

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Finally

func Finally[T any, U any](prev Stage[T], next mapNext[T, U]) (U, error)

Types

type Stage

type Stage[T any] struct {
	Value T
	Err   error
}

func Iterate

func Iterate[T any, U any](prev Stage[[]T], next mapNext[T, U]) Stage[[]U]

func Start

func Start[T any](f func() (T, error)) Stage[T]

func Then

func Then[T any, U any](prev Stage[T], next mapNext[T, U]) Stage[U]

Jump to

Keyboard shortcuts

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