0

Используем ReadFile() из пакета os, ioutil устарел

This commit is contained in:
eleksir
2023-05-18 00:52:39 +03:00
parent f94136938f
commit 545b85908c

View File

@@ -4,7 +4,6 @@ import (
"context"
"encoding/json"
"fmt"
"io/ioutil"
"os"
"path/filepath"
"strings"
@@ -254,7 +253,7 @@ func readConfig() {
continue
}
buf, err := ioutil.ReadFile(location)
buf, err := os.ReadFile(location)
// Не удалось прочитать, попробуем следующего кандидата
if err != nil {