From 4869c146fe5be0349ec2a18408655b408eec61e3 Mon Sep 17 00:00:00 2001 From: eleksir Date: Thu, 18 May 2023 23:52:47 +0300 Subject: [PATCH] Replace deprecated ioutil.ReadFile() with os.ReadFile() --- util.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/util.go b/util.go index 27debb9..2e39366 100644 --- a/util.go +++ b/util.go @@ -3,7 +3,6 @@ package main import ( "encoding/json" "fmt" - "io/ioutil" "os" "path/filepath" "syscall" @@ -44,7 +43,7 @@ func readConfig() { continue } - buf, err := ioutil.ReadFile(location) + buf, err := os.ReadFile(location) // Не удалось прочитать, попробуем следующего кандидата if err != nil {