How can I fix this? go get -v -u github.com/mattn/go-sqlite3 github.com/mattn/go-sqlite3…
- User
How can I fix this?
go get -v -u github.com/mattn/go-sqlite3 github.com/mattn/go-sqlite3 (download) github.com/mattn/go-sqlite3
github.com/mattn/go-sqlite3
go/src/github.com/mattn/go-sqlite3/convert.go:26:30: undefined: any go/src/github.com/mattn/go-sqlite3/convert.go:259:19: undefined: any go/src/github.com/mattn/go-sqlite3/sqlite3_func_crypt.go:53:41: undefined: any go/src/github.com/mattn/go-sqlite3/sqlite3_func_crypt.go:60:60: undefined: any go/src/github.com/mattn/go-sqlite3/sqlite3_func_crypt.go:70:43: undefined: any go/src/github.com/mattn/go-sqlite3/sqlite3_func_crypt.go:77:62: undefined: any go/src/github.com/mattn/go-sqlite3/sqlite3_func_crypt.go:87:43: undefined: any go/src/github.com/mattn/go-sqlite3/sqlite3_func_crypt.go:94:62: undefined: any go/src/github.com/mattn/go-sqlite3/sqlite3_func_crypt.go:104:43: undefined: any go/src/github.com/mattn/go-sqlite3/sqlite3_func_crypt.go:111:62: undefined: any go/src/github.com/mattn/go-sqlite3/sqlite3_func_crypt.go:111:62: too many errors
- Assistant
The error messages indicate that the use of
anytype in thego-sqlite3package you're trying to get is not recognized. This can happen if you're using an older version of Go which does not support theanytype. Theanytype was introduced in Go 1.18, and it is essentially an alias forinterface{}.Here's what you can do to fix this:
-
Upgrade Go: Ensure you're using Go 1.18 or later. You can check your Go version by running:
sh
-
- User
I have go 1.13.18
- Assistant
- User
How to uninstall the current GO version?
- Assistant