Skip to content

sters/go-project-boilerplate

Repository files navigation

go-project-boilerplate

go codecov go-report

My go project boilerplate.

Includes

  • Makefile
    • run
    • test
    • cover
    • Tools install from ./tools/tools.go
  • Github Actions
    • Go
      • Lint by golangcilint
      • Run test and upload test coverage to codecov
    • Release
      • Make release when vX.X.X tag is added by goreleaser.
  • README
    • Badge: Github Actions/Go
    • Badge: Codecov
    • Badge: Go Report

TODO when use this

  • Change run task in Makefile if needed
  • Change package name in go.mod
  • Update README.md

Install

go install github.com/sters/go-project-boilerplate@latest

or use specific version from Releases.

Usage

....