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