From 545b85908c5fe189bd897034d785062760b04279 Mon Sep 17 00:00:00 2001 From: eleksir Date: Thu, 18 May 2023 00:52:39 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D0=BE=D0=BB=D1=8C=D0=B7?= =?UTF-8?q?=D1=83=D0=B5=D0=BC=20ReadFile()=20=D0=B8=D0=B7=20=D0=BF=D0=B0?= =?UTF-8?q?=D0=BA=D0=B5=D1=82=D0=B0=20os,=20ioutil=20=D1=83=D1=81=D1=82?= =?UTF-8?q?=D0=B0=D1=80=D0=B5=D0=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aleesa-misc-lib.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/aleesa-misc-lib.go b/aleesa-misc-lib.go index 7142fa9..d81d0fd 100644 --- a/aleesa-misc-lib.go +++ b/aleesa-misc-lib.go @@ -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 {