ioutil: Remove deprecated functions where possible

This commit is contained in:
Jöran Karl
2024-05-30 21:34:11 +02:00
parent 18a81f043c
commit 6e8daa117a
12 changed files with 29 additions and 39 deletions

View File

@@ -8,7 +8,6 @@ import (
"fmt"
"io"
"io/fs"
"io/ioutil"
"os"
"path"
"path/filepath"
@@ -544,7 +543,7 @@ func (b *Buffer) ReOpen() error {
}
reader := bufio.NewReader(transform.NewReader(file, enc.NewDecoder()))
data, err := ioutil.ReadAll(reader)
data, err := io.ReadAll(reader)
txt := string(data)
if err != nil {