------------------------------------------------------------------------- File reader goroutine It's a bad idea to block multiple goroutines on file I/O. Creates many threads which fight for HDD. Therefore only single goroutine should read HDD at the same time. -------------------------------------
| 207 | //------------------------------------------------------------------------- |
| 208 | |
| 209 | type file_read_request struct { |
| 210 | filename string |
| 211 | out chan file_read_response |
| 212 | } |
| 213 | |
| 214 | type file_read_response struct { |
| 215 | data []byte |
nothing calls this directly
no outgoing calls
no test coverage detected