# HG changeset patch # User pyon # Date 1622936668 -32400 # Node ID bbeb834023e3c56f58916c467edbdd77dd13a8fa # Parent 65b8529196d56b8fb121dbc093f96625d9a33d20 not use ioutil. diff -r 65b8529196d5 -r bbeb834023e3 Porori/src2/porori.go --- a/Porori/src2/porori.go Sat May 29 10:07:57 2021 +0900 +++ b/Porori/src2/porori.go Sun Jun 06 08:44:28 2021 +0900 @@ -1,5 +1,5 @@ /* - Last Change: 2021-05-29 Sat 10:07:37. + Last Change: 2021-06-01 Tue 05:56:47. */ package main @@ -9,7 +9,6 @@ "encoding/csv" "encoding/json" "fmt" - "io/ioutil" "log" "os" "sort" @@ -126,7 +125,7 @@ } var yf YF - content, err := ioutil.ReadFile(jsonfile) + content, err := os.ReadFile(jsonfile) if err != nil { log.Fatal(err) } @@ -135,7 +134,7 @@ } // Read CSV - content, err = ioutil.ReadFile(os.Args[1]) + content, err = os.ReadFile(os.Args[1]) if err != nil { log.Fatal(err) }