skip to Main Content

Visual Studio Code – How to set cgo env variable before vscode launch code?

I have golang code like: import ( "github.com/bobertlo/go-mpg123/mpg123" ) func main() { ... } From terminal, to build this code. I must set below env variable: export C_INCLUDE_PATH=$C_INCLUDE_PATH:/opt/homebrew/Cellar/mpg123/1.32.3/include export LIBRARY_PATH=$LIBRARY_PATH:/opt/homebrew/Cellar/mpg123/1.32.3/lib Now I want build using vscode. I configure the launch.json,…

VIEW QUESTION
Back To Top
Search