Replace ioutil.ReadFile with os.ReadFile, fix chat set [[:space:]] in regexp

This commit is contained in:
eleksir
2023-06-14 01:08:24 +03:00
parent 747ff1454e
commit ac243bf4fd
4 changed files with 10 additions and 13 deletions

View File

@@ -2,7 +2,6 @@ package main
import (
"fmt"
"io/ioutil"
"os"
"regexp"
"strconv"
@@ -80,7 +79,7 @@ func main() {
}
file := config.DataDir + "/friday_src/friday.txt"
bytesRead, err := ioutil.ReadFile(file)
bytesRead, err := os.ReadFile(file)
if err != nil {
log.Errorf("Unable to read %s: %s\n", file, err)