Example use of the go test repository!
Below you can find sample instructions on how to set up the development environment. Of course you can use other tools like GoLand, Vim, Emacs. However take notice that the Visual Studio Go extension is officially supported by the Go team.
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.
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.
The Development Container configuration mixes Docker in Docker and Go definitions. Thanks to it you can use go
, docker
, docker-compose
inside the container.
make
- execute the build pipeline.make help
- print help for the Make targets.
F1
→ Tasks: Run Build Task (Ctrl+Shift+B or ⇧⌘B)
to execute the build pipeline.
The release workflow is triggered each time a tag with v
prefix is pushed.
CAUTION: Make sure to understand the consequences before you bump the major version. More info: Go Wiki, Go Blog.
Auto-tagging can be done in many ways e.g. by using GitHub Actions like:
However, creating a release tag manually is often the optimal approach. Take notice that this template executes a release workflow each time a git tag with v
prefix is pushed.
Simply create an issue or a pull request.