O'Reilly logo
  • pmalmgren-mobiledev thinks this is interesting:

Now let’s add the ability to abort the launch sequence by pressing the return key during the countdown. First, we start a goroutine that tries to read a single byte from the standard input and, if it succeeds, sends a value on a channel called abort.


Cover of The Go Programming Language


my note