Running Go tests in VSCode with CGO
====================================
(TXT) Goofy gopher (.svg)
Problem
--------
I had some trouble using go-sqlite3 while running tests in Visual Studio Code and the Go-extension . The Go compiler doesn’t adhere to the environment variables CC and CGO_ENABLED in launch.json .
(HTM) go-sqlite3
(HTM) Go-extension
Solution
---------
Open the global settings.json using the Command Palette ( CTRL + SHIFT + P ) and add:
This shows using the Mingw (installed using Cygwin ) compiler as well.
(HTM) Mingw
(HTM) Cygwin
(DIR) previous io.MultiWriter gotcha!
(DIR) next Overriding methods in Golang
Related
--------
(DIR) Generating test files
(TXT) /img/fallback.svg (.svg)
(DIR) snor
(TXT) Moustache (.svg)
(DIR) Faddy webserver
(TXT) /img/fallback.svg (.svg)
(DIR) Delphi Tetris
(IMG) Delphi Tetris (.png)
(DIR) io.MultiWriter gotcha!
(TXT) Goofy gopher (.svg)
(DIR) shakehands
(IMG) shakehands (.png)
(DIR) Overriding methods in Golang
(TXT) Goofy gopher (.svg)
(DIR) GoTris
(IMG) GoTris (.png)
(DIR) TIL executing commands in Windows explorer
(IMG) Step 1 - open file explorer (.png)