X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=cmd%2Ftai64nlocal%2Fmain.go;h=4fa1926bc1c700c7edb6f8cd0f6e4ff5ba4f86df;hb=HEAD;hp=b2a0c155d8f2220561197c19b445d80cec5322e8;hpb=9978840e570dfe3a23e2db36d64237febceaebcf;p=gotai64n.git diff --git a/cmd/tai64nlocal/main.go b/cmd/tai64nlocal/main.go index b2a0c15..4fa1926 100644 --- a/cmd/tai64nlocal/main.go +++ b/cmd/tai64nlocal/main.go @@ -1,19 +1,17 @@ -/* -go.cypherpunks.ru/tai64n -- Pure Go TAI64/TAI64N implementation -Copyright (C) 2020-2021 Sergey Matveev - -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 -the Free Software Foundation, version 3 of the License. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . -*/ +// go.cypherpunks.ru/tai64n -- Pure Go TAI64/TAI64N implementation +// Copyright (C) 2020-2024 Sergey Matveev +// +// 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 +// the Free Software Foundation, version 3 of the License. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . package main @@ -21,7 +19,6 @@ import ( "bufio" "flag" "fmt" - "io/ioutil" "log" "os" "strings" @@ -44,7 +41,7 @@ func main() { flag.Parse() if *db != "" { - buf, err := ioutil.ReadFile(*db) + buf, err := os.ReadFile(*db) if err != nil { log.Fatalln(err) }