Hi,
I was reading
https://tip.golang.org/pkg/io/fs/#File and noticed that interface File is not embedding io.ReadCloser. Even though the signature of the methods are identical, It would probably be a good idea to embed io.ReadCloser (or both io.Reader and io.Closer) to state the intention of making them compatible (and also have the excellent documentation on how to implement those methods).
So my actual question could be rephrased: is io/fs.File's Read and Close methods intended to be used in the exact same way as io.ReadCloser? If so, is there a reason why it is re-defining those two methods on its own? If not, wouldn't it be better to have different method names to avoid any confusion?
Thank you!