proposal: os: add Root.ReadFile & Root.WriteFile #73126
Labels
LibraryProposal
Issues describing a requested change to the Go standard library or x/ libraries, but not to a tool
Proposal
Milestone
I propose adding
ReadFile
andWriteFile
methods to*os.Root
:These are purely convenience functions (as are
os.ReadFile
andos.WriteFile
). I propose adding them because:os.ReadFile
andos.WriteFile
are very convenient convenience functions, and it's a shame not to have an equivalent that works withos.Root
.io/fs
package not only includes aReadFile
convenience function, it includes aReadFileFS
variant ofFS
containing aReadFile
method. I think that points at this being something we consider core filesystem functionality.The text was updated successfully, but these errors were encountered: