Skip to content

lokesh-balla/githooks-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

githooks-go

pre-commit git hooks for Golang projects

Prerequisites

  • goimports
  • gofmt
# installing goimports
$ go install golang.org/x/tools/cmd/goimports@latest

# installing gofumpt
$ go install mvdan.cc/gofumpt@latest

copying the git hook

# clone the repo
git clone --depth=1 https://github.com/Lokesh-Balla/githooks-go.git

# copy githooks from githooks folder to git repository
$ cd githooks-go
$ chmod +x githooks/*
$ cp githooks/* <project_directory>/.git/hooks/

About

pre-commit git hooks for Golang projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages