Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 712 Bytes

File metadata and controls

16 lines (10 loc) · 712 Bytes

Introduction

This is a template repository for go projects.

Setup

Execute the following commands to install git hooks:

  1. ln -s ../../githooks/pre-commit .git/hooks/: Run checks and tests before committing.
  2. ln -s ../../githooks/commit-msg .git/hooks/: Check whether the commit message conforms to conventional commits.

The pre-commit hook requires the following tools to be installed:

  1. mockgen: Generate mock files.
  2. wire: Generate dependency injection files.
  3. golangci-lint: Linters.