0

Replace deprecated ioutil.ReadFile() with os.ReadFile()

This commit is contained in:
eleksir
2023-05-18 23:52:47 +03:00
parent b26387ea9b
commit 4869c146fe

View File

@@ -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 {