Skip to content

yiranzai/golang-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

golang-template 🏷

codecov Go Report Card Sourcegraph Open Source Helpers Release FOSSA Status

Golang project general template for me. (pkg)

Table of contents 💿



Setup 🔌

Setup by Command

  1. git clone https://github.com/yiranzai/golang-template your_awesome_project
  2. Replace all strings yiranzai/golang-template in this repository to your_github_username/your_awesome_project
  3. Replace all strings golang-template in this repository to your_awesome_project

Setup on GitHub

Click "Use this template" button on GitHub project page.

Usage ✈️

Something.

Install ⚓️

go get github.com/yiranzai/golang-template

Test 🚦

make test

check or fix code style.

see .pre-commit-config.yaml

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

Recommend ⭐⭐⭐⭐⭐️

Packages 📦

Github Workflows ⛓

This repo used some workflows

Golang Test And Coverage

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

License 💾

This project is licensed under the MIT License. See the LICENSE file for the full license text.

FOSSA Status