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
default
Taskfile target:task
See
Taskfile.yml
for more details on the various targets or runtask --list
.