Re:Goroutines, Nonblocking I/O, and Memory Usage
by amscanne on Friday January 06, 2017 @01:27AM
(#13334388)
That is very nearly what they are.
The compiler actually just transforms everything channel related into function calls within the runtime package. The majority (probably > 99%) of the implementation of channels and select is Go itself.
The compiler actually just transforms everything channel related into function calls within the runtime package. The majority (probably > 99%) of the implementation of channels and select is Go itself.
E.g., see: https://golang.org/src/runtime/chan.go