Golang project general template for me. (pkg)
git clone https://github.com/yiranzai/golang-template your_awesome_project
- Replace all strings
yiranzai/golang-template
in this repository toyour_github_username/your_awesome_project
- Replace all strings
golang-template
in this repository toyour_awesome_project
Click "Use this template" button on GitHub project page.
Something.
go get github.com/yiranzai/golang-template
make test
check or fix code style.
e.g:
- go fmt
- golines
- go mod tiny
- go vet
Install the pre-commit
pip install pre-commit
pre-commit install
vim .pre-commit-config.yaml
- github.com/spf13/cobra powerful modern CLI
- github.com/spf13/viper Go configuration with fangs
- github.com/stretchr/testify Go code (golang) set of packages that provide many tools for testifying that your code will behave as you intend.
This repo used some workflows
Golang Test And Coverage upload to Codecov
Automatically increment version tags to a git repo based on commit messages.
GitHub Action for GoReleaser
This Github Markdown TOC fork for @ekalinin's Github Markdown TOC.
I Added flags to support for more features.
See ekalinin/github-markdown-toc#110 and ekalinin/github-markdown-toc#115
--all Find all Markdown files for non-hidden folders
--auto Ignore ts/te tags, Automatically at the end/head of the file
--head The TOC is generated in the header of the file, requires --auto
This project is licensed under the MIT License. See the LICENSE file for the full license text.