Replace ioutil.ReadFile with os.ReadFile, fix chat set [[:space:]] in regexp

This commit is contained in:
eleksir
2023-06-14 01:08:24 +03:00
parent 747ff1454e
commit ac243bf4fd
4 changed files with 10 additions and 13 deletions

View File

@@ -5,7 +5,6 @@ import (
"errors"
"fmt"
"io/fs"
"io/ioutil"
"math/rand"
"os"
"path/filepath"
@@ -131,7 +130,7 @@ func ReadConfig() MyConfig {
continue
}
buf, err := ioutil.ReadFile(location)
buf, err := os.ReadFile(location)
// Не удалось прочитать, попробуем следующего кандидата
if err != nil {