| 380 | } |
| 381 | |
| 382 | type fileWriter struct { |
| 383 | file *os.File |
| 384 | size int64 |
| 385 | bw *bufio.Writer |
| 386 | closed bool |
| 387 | committed bool |
| 388 | cancelled bool |
| 389 | } |
| 390 | |
| 391 | func newFileWriter(file *os.File, size int64) *fileWriter { |
| 392 | return &fileWriter{ |
nothing calls this directly
no outgoing calls
no test coverage detected