runner

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result[T any] struct {
	Res   T
	Error error
}

func Run

func Run[ArgsT any, ResT any](f func(ArgsT) (ResT, error), args []ArgsT) []Result[ResT]

Run executes f for each element in args, returning the results in the same order as args.

Jump to

Keyboard shortcuts

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