Skip to content

Instantly share code, notes, and snippets.

View mldbk's full-sized avatar

Marco Polo mldbk

View GitHub Profile
@mldbk
mldbk / go-git-commit-prehook.sh
Created January 2, 2018 16:13
git pre-commit hook for Golang
#!/bin/bash
check_exit() {
if [ $? -eq 1 ]; then
printf "linting failed when running $1...\n"
exit 1
fi
}
go vet $(glide nv)
### Keybase proof
I hereby claim:
* I am mldbk on github.
* I am mldbk (https://keybase.io/mldbk) on keybase.
* I have a public key whose fingerprint is E172 2980 95FC 5923 9C8D 20F1 4543 AFA2 7A9A 7E21
To claim this, I am signing this object: