add a twin method that uses fs.FS
|
// # TODO: add a twin method that uses fs.FS |
// retry the method call later.
func (lines *Buffer) WriteFile(filepath string) error {
// # TODO: add a twin method that uses fs.FS
f, err := os.OpenFile(filepath, os.O_CREATE|os.O_EXCL|os.O_WRONLY, fs.FileMode(0644))
if err != nil {
return err
05f08cb935e247935eafdd7619bbda80798e9665
add a twin method that uses fs.FS
lines/buffer.go
Line 56 in 034d8da
05f08cb935e247935eafdd7619bbda80798e9665