An open API service indexing awesome lists of open source software.

https://github.com/jenting/pre-commit-go

Go hooks for pre-commit
https://github.com/jenting/pre-commit-go

git go golang hooks pre-commit pre-commit-hook

Last synced: about 1 month ago
JSON representation

Go hooks for pre-commit

Awesome Lists containing this project

README

          

# Go hooks for pre-commit

[Go](https://golang.org) hooks for [pre-commit](http://pre-commit.com).

## Using go hooks with pre-commit

At your repository, add the following to the file `.pre-commit-config.yaml`:
```yaml
- repo: https://github.com/jenting/pre-commit-go
rev: v1.0.2
hooks:
- id: go-fmt
- id: go-vet
- id: go-imports
- id: go-mod
```

Example output:
![Demo](assets/demo.png)