diff --git a/go.mod b/go.mod index b2594a2..b7dba74 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,6 @@ require ( github.com/gocarina/gocsv v0.0.0-20220712153207-8b2118da4570 github.com/olekukonko/tablewriter v0.0.5 github.com/spf13/pflag v1.0.5 - gopkg.in/yaml.v2 v2.4.0 ) require ( @@ -16,6 +15,7 @@ require ( github.com/onsi/ginkgo/v2 v2.1.6 github.com/onsi/gomega v1.21.1 gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect + gopkg.in/yaml.v3 v3.0.1 ) require ( @@ -23,5 +23,4 @@ require ( golang.org/x/net v0.0.0-20220722155237-a158d28d115b // indirect golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f // indirect golang.org/x/text v0.3.7 // indirect - gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index 4e0a04a..2aba131 100644 --- a/go.sum +++ b/go.sum @@ -147,7 +147,6 @@ gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWD gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/v1/printers.go b/v1/printers.go index 54e5cc6..c6b3269 100644 --- a/v1/printers.go +++ b/v1/printers.go @@ -12,7 +12,7 @@ import ( "github.com/go-xmlfmt/xmlfmt" "github.com/gocarina/gocsv" "github.com/olekukonko/tablewriter" - "gopkg.in/yaml.v2" + "gopkg.in/yaml.v3" ) // WriteOutput writes output in the configured format with default printer options