This image is the basis of the image to do barebone Go development. It does not setup any editors for Go.
TODO
- Run the Docker container per your OS in the instructions here where your
GDEC_IMAGE
equalsjcscottiii/vscode-gdec
- Once in the container, run this to start the IDE.
code &
When you run code .
, it will start up the IDE at $GOPATH. You will begin to put your source code in $GOPATH/src. The picture above assumes you have package called test
with a file called main.go
in the src
folder (i.e. $GOPATH/src/test/main.go). Press the green play button and a dropdown will appear, select Go
, it will show launch.json
. You will want to set the program
field to src/test
. If for some reason, you missed the Go option, delete your launch.json
Follow the running instructions for your OS.
- Note: The screen capture tool is unable to show the breakpoints being set, but they are. You click to the left of the line numbers.