nbio/xml

Build is failing with go1.21 and go1.20

Closed this issue · 3 comments

Hi

Tried to use with go.1.21, but got this errors:

../gopath3129421724/pkg/mod/github.com/nbio/xml@v0.0.0-20230911191213-3196beda1b54/xml.go:55:12: predeclared any requires go1.18 or later (-lang was set to go1.16; check go.mod)
../gopath3129421724/pkg/mod/github.com/nbio/xml@v0.0.0-20230911191213-3196beda1b54/marshal.go:80:16: predeclared any requires go1.18 or later (-lang was set to go1.16; check go.mod)
...
../gopath3129421724/pkg/mod/github.com/nbio/xml@v0.0.0-20230911191213-3196beda1b54/read.go:200:23: predeclared any requires go1.18 or later (-lang was set to go1.16; check go.mod)
../gopath3129421724/pkg/mod/github.com/nbio/xml@v0.0.0-20230911191213-3196beda1b54/marshal.go:213:14: too many errors

playground: https://go.dev/play/p/pUaXJ-l0ElK

ydnar commented

Thanks for the report. I’ll take a look!

ydnar commented

@procodr can you give this current version a try?

It's OK now, thanks for your great work. 👍