执行以下代码
go build --tags "libsqlite3 linux" -o mem-game-server main.go
报以下异常
# github.com/mattn/go-sqlite3
../../../mattn/go-sqlite3/backup.go:12:21: fatal error: sqlite3.h: No such file or directory
compilation terminated.
参考https://*.com/questions/28969543/fatal-error-sqlite3-h-no-such-file-or-directory
安装libsqlite3-dev
后再次执行build
编译顺利完成