Skip to content

Commit

Permalink
Bump go version & fix lint errors (#21)
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Hopfensperger <f.hopfensperger@gmail.com>
  • Loading branch information
fhopfensperger authored Nov 5, 2021
1 parent f4bcdee commit 89caf8b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 1 addition & 2 deletions cmd/root_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package cmd
import (
"bytes"
"io"
"io/ioutil"
"os"
"path/filepath"
"strings"
Expand Down Expand Up @@ -98,7 +97,7 @@ func TestExecute(t *testing.T) {
cmd.SetArgs([]string{"--version"})
Execute("0.0.0")

out, _ := ioutil.ReadAll(b)
out, _ := io.ReadAll(b)
assert.Equal(t, "v0.0.0\n", string(out))
}

Expand Down
10 changes: 9 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
module github.com/fhopfensperger/json-log-to-human-readable

go 1.16
go 1.17

require (
github.com/pkg/errors v0.9.1
github.com/spf13/cobra v1.2.1
github.com/stretchr/testify v1.7.0
)

require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
)

0 comments on commit 89caf8b

Please sign in to comment.