Good day! Error launching a file compiled from under Windows on a linux machine:
sql: unknown driver "sqlite3" (forgotten import?) Everything is working fine on Windows
I tried the driver github.com/mattn/go-sqlite3 and github.com/mxk/go-sqlite
Compilation:
set GOOS=linux go build entry.go Code: http://pastebin.com/8iqvhp1n
Import Library: _ "github.com/mattn/go-sqlite3"
Why is this happening and how can this be solved?
Go 1.7.4, Windows 10, Ubuntu 04/16/1
go buildwithGOOS=linux CGO_ENABLED=1. - Ainar-G