Skip to content

theflyingcodr/go-lib-template

Repository files navigation

go-lib-template

GitHub Workflow Status GitHub GitHub go.mod Go version Report GitHub release (latest by date)

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.

Getting started

  • Create a new github repo
  • Select this as the template
  • Clone the repo
  • run go mod init github.com/youruser/yourporject
  • code code code

Build pipeline

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.

Mergify

It also has a mergify config if you run that on your repos for auto merging etc.

Lets see if it works. Hmm

About

A common template I use when creating go libraries

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published