Open exists to make the aferoFsWrapper conform to the fs.FS interface. It is necessary to do this in order to change the first return type from afero.File to fs.File. Yes, even though afero.File conforms to the fs.File interface, go is not smart enough to detect this indirection.
(name string)
| 238 | // even though afero.File conforms to the fs.File interface, go is not smart enough to |
| 239 | // detect this indirection. |
| 240 | func (w wrapperFs) Open(name string) (fs.File, error) { |
| 241 | return w.afs.Open(name) |
| 242 | } |
no outgoing calls