]> Cypherpunks.ru repositories - gotai64n.git/commitdiff
io/ioutil is deprecated since Go 1.16
authorSergey Matveev <stargrave@stargrave.org>
Tue, 30 Aug 2022 13:28:14 +0000 (16:28 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Tue, 30 Aug 2022 13:28:14 +0000 (16:28 +0300)
cmd/tai64nlocal/main.go

index 04bce9dfd5b8fafd10aff0e0ae246cea2c462a0d..c5dc96557db0f1424da58ca71ab49d2671fb684e 100644 (file)
@@ -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)
                }