pipeline

package
v1.1.56-test Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: MIT Imports: 2 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Difference

func Difference[T comparable](first []T, second []T) []T

func ExtractMapValues

func ExtractMapValues[TKey comparable, TValue any](m map[TKey]TValue) []TValue

func Filter

func Filter[In any](in []In, d func(i In) (bool, error)) ([]In, error)

func Flatten

func Flatten[TValue any](in [][]TValue) []TValue

func IndexOf

func IndexOf[T comparable](collection []T, item T) int

func JoinToCamelCase

func JoinToCamelCase(stringSlice []string) string

func Map

func Map[In any, Out any](in []In, d Mapper[In, Out]) ([]Out, error)

func MustFilter

func MustFilter[In any](in []In, d func(i In) bool) []In

func MustMap

func MustMap[In any, Out any](in []In, d func(i In) Out) []Out

Types

type Enumerable

type Enumerable[T comparable] []T

func (Enumerable[T]) Filter

func (e Enumerable[T]) Filter(d func(i T) bool) Enumerable[T]

func (Enumerable[T]) IndexOf

func (e Enumerable[T]) IndexOf(item T) int

func (Enumerable[T]) Slice

func (e Enumerable[T]) Slice() []T

type Mapper

type Mapper[In any, Out any] func(i In) (Out, error)

Jump to

Keyboard shortcuts

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