We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
given main.go
package main import ( "log" _ "github.com/mattn/go-sqlite3" ) func main() { log.Println("hello world") }
running go run -v cmd/main/main.go produces:
go run -v cmd/main/main.go
github.com/mattn/go-sqlite3 ^C⏎
the application just hangs...
Removing _ "github.com/mattn/go-sqlite3" allows the application to run again.
_ "github.com/mattn/go-sqlite3"
go.mod:
module test-go-sqlite go 1.22.0 require github.com/mattn/go-sqlite3 v1.14.22
The text was updated successfully, but these errors were encountered:
This happens to me too.
I'm using Arch Linux, Go 1.22.2 and go-sqlite3 v1.14.22.
Sorry, something went wrong.
Oh, I just read the docs, you need to have CGo enabled: export CGO_ENABLED=1.
export CGO_ENABLED=1
No branches or pull requests
given main.go
running
go run -v cmd/main/main.go
produces:the application just hangs...
Removing
_ "github.com/mattn/go-sqlite3"
allows the application to run again.go.mod:
The text was updated successfully, but these errors were encountered: