A git template that can be used to bootstrap a go library, ie, something that isn't an executable.
This comes complete with git actions for:
- greetings - welcome new contributors automatically
- build & release - to ensure your code is building before creating a release
- code quality - to scan for obvious issues
There is also a Makefile with some handy common commands for running all tests, testing the releaser etc.
This will hopefully make a good starting point when you are looking to start a new go project.
- Create a new github repo
- Select this as the template
- Clone the repo
- run
go mod init github.com/youruser/yourporject
- code code code
The go build will run on PRs and when pushed to master. When you tag master it will then run the go build and then create a release.
It also has a mergify config if you run that on your repos for auto merging etc.
Lets see if it works. Hmm