Closed mpfrancis closed 7 months ago
If it only requires 1.18 shouldn't it be set to that?
I tried 1.18, there was a different set of errors requiring 1.21.
$ go run main.go
# github.com/Auburn/FastNoiseLite/Go
..\FastNoiseLite\Go\fastnoise.go:685:19: implicitly instantiated function in assignment requires go1.21 or later (-lang was set to go1.18; check go.mod)
..\FastNoiseLite\Go\fastnoise.go:686:19: implicitly instantiated function in assignment requires go1.21 or later (-lang was set to go1.18; check go.mod)
..\FastNoiseLite\Go\fastnoise.go:688:19: implicitly instantiated function in assignment requires go1.21 or later (-lang was set to go1.18; check go.mod)
..\FastNoiseLite\Go\fastnoise.go:689:19: implicitly instantiated function in assignment requires go1.21 or later (-lang was set to go1.18; check go.mod)
..\FastNoiseLite\Go\fastnoise.go:691:19: implicitly instantiated function in assignment requires go1.21 or later (-lang was set to go1.18; check go.mod)
..\FastNoiseLite\Go\fastnoise.go:692:19: implicitly instantiated function in assignment requires go1.21 or later (-lang was set to go1.18; check go.mod)
..\FastNoiseLite\Go\fastnoise.go:696:20: implicitly instantiated function in assignment requires go1.21 or later (-lang was set to go1.18; check go.mod)
..\FastNoiseLite\Go\fastnoise.go:697:20: implicitly instantiated function in assignment requires go1.21 or later (-lang was set to go1.18; check go.mod)
..\FastNoiseLite\Go\fastnoise.go:699:20: implicitly instantiated function in assignment requires go1.21 or later (-lang was set to go1.18; check go.mod)
..\FastNoiseLite\Go\fastnoise.go:700:20: implicitly instantiated function in assignment requires go1.21 or later (-lang was set to go1.18; check go.mod)
..\FastNoiseLite\Go\fastnoise.go:700:20: too many errors
I don't know anything about Go but could that second error be fixed by making what is complaining about explicit? v1.21 looks to be fairly recent, it would better to only require v1.18
Great! Thanks for the help
Importing and using the Go fastnoise library currently results in the below errors using the current version of go (v1.22.1). Adding a go.mod with go version 1.21 or higher specified should alleviate these errors.