util

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloneChanFn added in v1.3.0

func CloneChanFn[T, E any](fn func(<-chan T) <-chan E, num int, in <-chan T) <-chan E

cloning stream channel function means that more goroutines will work for it. and finally all stream will be faned in one channel.

func GenChanFn added in v1.3.0

func GenChanFn[T any, E any](logic func(in <-chan T, out chan<- E)) func(<-chan T) <-chan E

to make a stream channel function.

func Multiply

func Multiply[T, E, R any](f func(E) R, g func(T) E) func(T) R

multiply two functions to one, right function first.

func SortChan added in v1.3.0

func SortChan[T sorter](in <-chan T) <-chan T

Types

This section is empty.

Jump to

Keyboard shortcuts

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