Sign inSign up

jcscottiii/vscode-gdec

By jcscottiii

•Updated almost 11 years ago

Go Development Environment Container that uses Visual Studio Code

Image
1

1.1K

jcscottiii/vscode-gdec repository overview

⁠Visual Studio Code Image

⁠Docker Image: jcscottiii/vscode-gdec Docker Hub Badge

⁠Table of Contents

⁠Image Description

This image is the basis of the image to do barebone Go development. It does not setup any editors for Go.

⁠Image Contents

TODO

⁠Running

  • Run the Docker container per your OS in the instructions here⁠ where your GDEC_IMAGE equals jcscottiii/vscode-gdec
  • Once in the container, run this to start the IDE.
    • code &

⁠Usage

⁠Using Visual Studio Code
⁠Debugger

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

⁠Screenshots

⁠Starting up visual studio code in the container

Starting Up Visual Studio Code Follow the running instructions for your OS.

⁠Editing Go file in Visual Studio Code

Editing Go File In Visual Studio Code Creating a hello world app

⁠Debugging Go file in Visual Studio Code

Debugging in Visual Studio Code

  • 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.

Tag summary

Content type

Image

Digest

Size

501.5 MB

Last updated

almost 11 years ago

docker pull jcscottiii/vscode-gdec