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