v1.19.1
(go version
).gitpod.yml
.gitpod.yml
.gitpod.Dockerfile
to install your preferred dependency versions.gitpod.yml
and .gitpod.Dockerfile
.gitpod.Dockerfile
gitpod.io/#https://github.com/gitpod-io/gitpod
gitpod.yml
or gitpod.Dockerfile
are checked in to version control
and are on the branch or commit that you are opening.dep
dependency manager in Gitpoddep
(deprecated - v0.5.4) dependency manager then you need to add a .gitpod.Dockerfile to your project. A basic example that extends the default workspace image might be something like:
.gitpod.yml
configuration file, like so:
.theia/
, and inside add a file called launch.json
, finally, add the following to it:
main.go
file in the editor.Run
menu and select Edit Configurations...
.+
button and select Go Application
.Go Application
window, enter the name of the configuration and the path to the file you want to debug.Apply
button.Debug
button to start debugging your Go application.$GOPATH
$GOPATH
. Using the .gitpod.yml
file, you can bring about such a workspace layout. Here is
how we do that for the example go-gin-app repository:
/workspace
, which becomes the
root directory for the workspace. With checkoutLocation
and workspaceLocation
you can
change this behavior (the paths are taken relative to /workspace
).$GOPATH
environment variable to include the directory /workspace/go
.go get -v ./...
we retrieve the sources of the dependencies from GitHub.go build -o app
.Repository | Description | Try It |
---|---|---|
prometheus | The Prometheus monitoring system and time series database | |
go-swagger | A simple yet powerful representation of your RESTful API | |
go-gin-app | Gin example running in Gitpod | |
gosh-terminal | A terminal implemented in Go where you can do anything |