From: Sergey Matveev Date: Tue, 30 Aug 2022 13:28:14 +0000 (+0300) Subject: io/ioutil is deprecated since Go 1.16 X-Git-Tag: v2.0.1~2 X-Git-Url: http://www.git.cypherpunks.ru/?p=gotai64n.git;a=commitdiff_plain;h=f1c943309e457d9bf9617677584a2f8db828e025 io/ioutil is deprecated since Go 1.16 --- diff --git a/cmd/tai64nlocal/main.go b/cmd/tai64nlocal/main.go index 04bce9d..c5dc965 100644 --- a/cmd/tai64nlocal/main.go +++ b/cmd/tai64nlocal/main.go @@ -21,7 +21,6 @@ import ( "bufio" "flag" "fmt" - "io/ioutil" "log" "os" "strings" @@ -44,7 +43,7 @@ func main() { flag.Parse() if *db != "" { - buf, err := ioutil.ReadFile(*db) + buf, err := os.ReadFile(*db) if err != nil { log.Fatalln(err) }