pre-commit-hooks-golang/README.md

449 B

pre-commit hooks for golang

This repository contains pre-commit hooks for modern Golang developers.

Using

Add this to your .pre-commit-config.yaml:

repos:
  - repo: https://sources.dev.pztrn.name/pztrn/pre-commit-hooks-golang
    rev: master
    hooks:
      - id: golangci-lint-mod
      ...

Hooks list

  • golangci-lint-mod - executes golangci-lint in module mode (GO111MODULES=on)