File is an io.ReadWriteCloser that can also be Canceled if a change needs to be abandoned.
| 47 | |
| 48 | // File is an io.ReadWriteCloser that can also be Canceled if a change needs to be abandoned. |
| 49 | type File interface { |
| 50 | io.ReadWriteCloser |
| 51 | // Cancel abandons a change to a file. This can be called if a write fails or another error occurs. |
| 52 | Cancel() error |
| 53 | } |
| 54 | |
| 55 | // ErrClosed is returned if Read or Write are called on a closed File. |
| 56 | var ErrClosed = errors.New("file is closed") |
no outgoing calls
no test coverage detected
searching dependent graphs…