On Fri, Jun 24, 2016 at 2:44 PM, <msoul...@gmail.com> wrote: > Unfortunately I don't think this works if you want to do something like poll > stdin, skipping EOFs in a non-busy-waiting pattern. > > A simple poll() in C works fine for this, but I can't figure out how do this > this in Go because it does not provide a poll.
In Go you normally simply start a goroutine that reads from Stdin and sends the data over a channel. Goroutines are cheap. Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.