MCPcopy Create free account
hub / github.com/nsf/gocode / file_read_request

Struct file_read_request

utils.go:209–212  ·  view source on GitHub ↗

------------------------------------------------------------------------- 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. -------------------------------------

Source from the content-addressed store, hash-verified

207//-------------------------------------------------------------------------
208
209type file_read_request struct {
210 filename string
211 out chan file_read_response
212}
213
214type file_read_response struct {
215 data []byte

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected