This is a simple template for developing Go applications. It includes a Makefile for building, testing, and analyzing the code, as well as a .gitignore file to exclude unnecessary files from version control.
Use the init.py script to set toolname, module name, author, and year.
python init.pyAlternatively, you may manually update the following files:
- Update the
moduleingo.modto your project's module path. - Update
tool-nameinMakefileto your desired tool name. - Update
<tool-name>inmain.go,cmd/version/command.goto your desired tool name. - Update the copyright year and name in
LICENSE.
- Update this
README.mdto reflect your project details. - When NOT using Docker:
- Delete the
Dockerfile - Remove the
dockerdependabot config at.github/dependabot.yml - Remove the steps starting at
- name: Set up QEMUin.github/workflows/release.yml
- Delete the
- When using Docker:
- Update
<tool-name>inDockerfileand.github/workflows/release.yml(if not already done byinit.py)
- Update
- Import the
ruleset.jsonas a branch protection rule in your GitHub repository settings.- Delete the
ruleset.jsonfile after importing.
- Delete the
- Enable
Allow auto-mergein the general settings of your GitHub repository. - Enable
Automatically delete head branchesin the general settings of your GitHub repository. - Create the
Dependenciestag
This project is licensed under the MIT License. See the LICENSE file for details