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
- Host: GitHub
- URL: https://github.com/jenting/pre-commit-go
- Owner: jenting
- License: mit
- Created: 2019-11-29T07:39:39.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-06T07:39:20.000Z (over 6 years ago)
- Last Synced: 2025-07-11T00:31:31.159Z (11 months ago)
- Topics: git, go, golang, hooks, pre-commit, pre-commit-hook
- Language: Shell
- Homepage:
- Size: 43.9 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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:
