Skip to content

Commit

Permalink
drops ioutil ref.
Browse files Browse the repository at this point in the history
updates go.mod to 1.16
  • Loading branch information
fgeller committed Jun 14, 2021
1 parent 6255a6d commit c4005a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/fgeller/jsonify

go 1.14
go 1.16
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"os"
)

Expand Down Expand Up @@ -79,7 +78,7 @@ func main() {
value := os.Args[idx+1]
_, err := os.Stat(value)
if !os.IsNotExist(err) {
bs, err := ioutil.ReadFile(value)
bs, err := os.ReadFile(value)
if err != nil {
fmt.Fprintf(os.Stderr, "Could not read contents of file %s. err=%s", value, err)
os.Exit(1)
Expand Down

0 comments on commit c4005a7

Please sign in to comment.