franz-go
franz-go copied to clipboard
Build failed when using go 1.15 and franz-go 1.6.0
github.com/twmb/franz-go/pkg/kgo
/root/go/pkg/mod/github.com/twmb/[email protected]/pkg/kgo/record_formatter.go:1588:13: undefined: io.ReadAll
io.ReadAll not available in go 1.15
Maybe we can replace io.ReadAll with ioutil.ReadAll. As of Go 1.16, ioutil.ReadAll simply calls io.ReadAll.
Yes that's the proper solution.
Someday, the minimal version should be bumped to go1.16 -- 1.15 has been unsupported for two releases now.
This will be out in v1.6.1 or v1.7.0, whichever comes first.
Since this is minor and the only change so far for 1.6.0, I'll probably wait until I address #175 and then release both at once for 1.7.0
This has been released in v1.7