In this post, i'll try to build a Go development environment on VSCode.
Introduction
I use Emacs as primary text editor. And secondary text editor is VSCode. Exposure to different text editors is very important for getting inspiration.
This assumes that VSCode is already installed on your Mac.
If you doesn't install it, please download here:
How to setup
Install go via Homebrew.
|
|
Open .zshenv
, write it.
|
|
Next, install Visual Studio Extension for Go.
The extention use dlv
. So if you finished to install the extention, then run following command:
|
|
Debugging with VSCode
At first, make .vscode/launch.json
.
Here is the launch.json that I used when debugging go-org.
|
|
Finally, type F5
.