runtime/cgo: gcc_libinit_windows.c:136:27: error: implicit declaration of function ‘_beginthread’
在window下使用go-sqlite会存在gcc问题:
runtime/cgo: gcc_libinit_windows.c:136:27: error: implicit declaration of function '_beginthread'
解决方案
删除其他的gcc 环境,只是用tdm-gcc ,就可以编译成功
tdm-gcc下载地址:https://jmeubank.github.io/tdm-gcc/download/

一路安装即可。
然后即可正常编译