diff --git a/go.mod b/go.mod index 7c50a00..074fa9e 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module github.com/fgeller/jsonify -go 1.14 +go 1.16 diff --git a/main.go b/main.go index 8a77951..5eaaa50 100644 --- a/main.go +++ b/main.go @@ -3,7 +3,6 @@ package main import ( "encoding/json" "fmt" - "io/ioutil" "os" ) @@ -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)