Go Kata Template
A repository template for exercises using Visual Studio Code.
You can also simply clone this repository if you do not want to put your code in GitHub.
Features
Visual Studio Code configuration:
- Formatting code, running build, running tests with code coverage and linting on file save.
- Default build task running unit tests with race detector:
F1
->Tasks: Run Build Task (CTRL+ALT+B)
.
Development Containers support.
Continuous integration via GitHub Actions.
Dependencies scanning and updating thanks to Dependabot.
Setup
Local Machine
Follow these steps if you are OK installing and using Go on your machine.
- Install Go.
- Install Visual Studio Code.
- Install Go extension.
- Clone and open this repository.
F1
→Go: Install/Update Tools
-> (select all) -> OK.F1
→Tasks: Run Build Task (Ctrl+Shift+B or ⇧⌘B)
.
Development Container
Follow these steps if you do not want to install Go on your machine and you prefer to use a Development Container instead.
- Install Visual Studio Code.
- Follow Developing inside a Container - Getting Started.
- Clone and open this repository.
F1
→Remote-Containers: Reopen in Container
.F1
→Go: Install/Update Tools
-> (select all) -> OK.F1
→Tasks: Run Build Task (Ctrl+Shift+B or ⇧⌘B)
.
Kata catalogues
Contributing
Simply create an issue or a pull request.