7 lines
120 B
Go
7 lines
120 B
Go
|
package query
|
||
|
|
||
|
func makeChannelPair[T any](cap int) (<-chan T, chan<- T) {
|
||
|
out := make(chan T, cap)
|
||
|
return out, out
|
||
|
}
|