I found this <-(chan string)(nil) strange construct in the Gobetween sources.
select{}?The statement casts nil as type chan string, then reads from it.
According to Dave Cheney's Channel Axioms:
A receive from a nil channel blocks forever
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With