Documentation
¶
Overview ¶
Package stream is data stream ETL
Index ¶
- type Stream
- func (s Stream[T]) Distinct() Stream[T]
- func (s Stream[T]) DistinctFn(fn func(o T) any) Stream[T]
- func (s Stream[T]) Each(fn func(i int, o T))
- func (s Stream[T]) Filter(fn func(o T) bool) Stream[T]
- func (s Stream[T]) Limit(n uint) Stream[T]
- func (s Stream[T]) Reverse() Stream[T]
- func (s Stream[T]) Skip(n uint) Stream[T]
- func (s Stream[T]) Slice() (arr []T)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Stream ¶
type Stream[T comparable] chan T
func Connect ¶
func Connect[T comparable](arr []T, arrs ...[]T) Stream[T]
Connect Multiple slice splicing
func (Stream[T]) DistinctFn ¶
DistinctFn 去重
Click to show internal directories.
Click to hide internal directories.