]> Cypherpunks.ru repositories - gotai64n.git/blobdiff - cmd/tai64nlocal/main.go
io/ioutil is deprecated since Go 1.16
[gotai64n.git] / cmd / tai64nlocal / main.go
index b2a0c155d8f2220561197c19b445d80cec5322e8..c5dc96557db0f1424da58ca71ab49d2671fb684e 100644 (file)
@@ -1,6 +1,6 @@
 /*
 go.cypherpunks.ru/tai64n -- Pure Go TAI64/TAI64N implementation
-Copyright (C) 2020-2021 Sergey Matveev <stargrave@stargrave.org>
+Copyright (C) 2020-2022 Sergey Matveev <stargrave@stargrave.org>
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
@@ -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)
                }