8 lines
101 B
Go
8 lines
101 B
Go
|
package reactive
|
||
|
|
||
|
func Copy[T any](in <-chan T, out chan<- T) {
|
||
|
for v := range in {
|
||
|
out <- v
|
||
|
}
|
||
|
}
|