From 8248124f478b2ce54a0dc92c0d8d484fd9be771d Mon Sep 17 00:00:00 2001 From: slavabobik Date: Wed, 23 Nov 2022 23:31:24 +0200 Subject: [PATCH] Bump go version 1.16 -> 1.19 --- cmd/cmd_produce.go | 4 ++-- go.mod | 48 +++++++++++++++++++++++++++++++++++++++++----- 2 files changed, 45 insertions(+), 7 deletions(-) diff --git a/cmd/cmd_produce.go b/cmd/cmd_produce.go index 021d9c3..e9b2760 100644 --- a/cmd/cmd_produce.go +++ b/cmd/cmd_produce.go @@ -4,7 +4,7 @@ import ( "bufio" "bytes" "context" - "io/ioutil" + "io" "os" "strings" "sync/atomic" @@ -261,7 +261,7 @@ func readData(dataFlag string) ([]byte, error) { log.Debug("Reading data from stdin...") reader := bufio.NewReader(os.Stdin) - data, err := ioutil.ReadAll(reader) + data, err := io.ReadAll(reader) if err != nil { return nil, err } diff --git a/go.mod b/go.mod index 2cf9e19..117296f 100644 --- a/go.mod +++ b/go.mod @@ -1,12 +1,11 @@ module github.com/SberMarket-Tech/protokaf -go 1.16 +go 1.19 require ( - github.com/HdrHistogram/hdrhistogram-go v1.1.0 // indirect github.com/Pallinder/go-randomdata v1.2.0 github.com/Shopify/sarama v1.29.1 - github.com/golang/protobuf v1.5.2 // indirect + github.com/golang/protobuf v1.5.2 github.com/google/uuid v1.3.0 github.com/jhump/protoreflect v1.9.0 github.com/opentracing/opentracing-go v1.2.0 @@ -15,10 +14,49 @@ require ( github.com/spf13/viper v1.8.1 github.com/stretchr/testify v1.7.0 github.com/uber/jaeger-client-go v2.29.1+incompatible - github.com/uber/jaeger-lib v2.4.1+incompatible // indirect github.com/xdg/scram v1.0.3 - go.uber.org/atomic v1.9.0 // indirect go.uber.org/zap v1.18.1 +) + +require ( + github.com/HdrHistogram/hdrhistogram-go v1.1.0 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/eapache/go-resiliency v1.2.0 // indirect + github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21 // indirect + github.com/eapache/queue v1.1.0 // indirect + github.com/fsnotify/fsnotify v1.4.9 // indirect + github.com/golang/snappy v0.0.3 // indirect + github.com/hashicorp/go-uuid v1.0.2 // indirect + github.com/hashicorp/hcl v1.0.0 // indirect + github.com/inconshreveable/mousetrap v1.0.0 // indirect + github.com/jcmturner/aescts/v2 v2.0.0 // indirect + github.com/jcmturner/dnsutils/v2 v2.0.0 // indirect + github.com/jcmturner/gofork v1.0.0 // indirect + github.com/jcmturner/gokrb5/v8 v8.4.2 // indirect + github.com/jcmturner/rpc/v2 v2.0.3 // indirect + github.com/klauspost/compress v1.12.2 // indirect + github.com/magiconair/properties v1.8.5 // indirect + github.com/mitchellh/mapstructure v1.4.1 // indirect + github.com/pelletier/go-toml v1.9.3 // indirect + github.com/pierrec/lz4 v2.6.0+incompatible // indirect + github.com/pkg/errors v0.8.1 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect + github.com/spf13/afero v1.6.0 // indirect + github.com/spf13/cast v1.3.1 // indirect + github.com/spf13/jwalterweatherman v1.1.0 // indirect + github.com/subosito/gotenv v1.2.0 // indirect + github.com/uber/jaeger-lib v2.4.1+incompatible // indirect + github.com/xdg/stringprep v1.0.3 // indirect + go.uber.org/atomic v1.9.0 // indirect + go.uber.org/multierr v1.6.0 // indirect + golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e // indirect + golang.org/x/net v0.0.0-20210614182718-04defd469f4e // indirect golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c // indirect + golang.org/x/text v0.3.6 // indirect + google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c // indirect google.golang.org/protobuf v1.27.1 // indirect + gopkg.in/ini.v1 v1.62.0 // indirect + gopkg.in/yaml.v2 v2.4.0 // indirect + gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect )