I have read many blogs on Golang networking, but most of them use select
and channel to handle the newly accepted connection, then read or write data directly. But how can I implement Java-like NIO in Go?
Golang uses channels, buffered channels, goroutines, and select
statements to achieve IO in a similar way to Java's NIO. Perhaps take a look at each of the mentioned .