My own minimalist template for setting up a new Go project.
make
installedgithub.com/Tethik/go-template
. Rename example
.main: ./cmd/example/example.go
and binary: app
in .goreleaser.yaml
Ensure you set Actions -> Workflow permissions
to Read and write permissions
make
or make single-build
- build for just your arch. Outputs in dist/
.make build
- to build for all archsmake test
- to run testsTo create a new release:
git tag -a vX.Y.Z # set your semantic version here
git push origin vX.Y.Z
Alternatively you can a manual release via make (not tested tbh)
make release