This article isn't bad... but it misses several important points of Go. I also note the article is 9 months old. In the hope that my criticism will be taken as constructive, with apologies for not writing detailed explanations: 1. Goroutines are not threads 2. type inference allows you to elide types in var declarations: var host = flag.String(... 3. Go's convention is to use camel case, not underscores. 4. Calling o…
How are goroutines not threads? Do you mean because it's possible for them to communicate without shared mutable state? Edit: Oh, apparently you all mean OS threads. So say so. (For example, in Haskell they're called threads without any implication that each one is an OS thread. Haskell's not unusual that way.)
In this case, threads refer to not-a-process units of execution in an operating system. For whatever its worth, Wikipedia defines threads as:
the smallest sequence of programmed instructions that
can be managed independently by an operating system
scheduler.
I think that's also the commonly accepted definition: that threads are related to the OS scheduler.