This repository contains a Go web service example project that is meant to be ran in a dev container.
-
Clone this repository:
git clone https://github.com/ericslandry/webapi.git
-
Open the repository in VSCode:
code webapi
-
Reopen the repository in a container:
- Click on the green icon in the bottom left corner of the window and select
Reopen in Container. - Alternatively, you can open the command palette (Ctrl+Shift+P) and type
Remote-Containers: Reopen in Container.
After a reload, VSCode should display "Dev Container: Go" at the bottom left:

- Click on the green icon in the bottom left corner of the window and select
-
Run the
defaultTaskfile target:task
See
Taskfile.ymlfor more details on the various targets or runtask --list.