Bootstrap

golang git pre-commit钩子

.git/hooks/pre-commit

#!/bin/bash

STAGED_GO_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep ".go$")

if [ "$STAGED_GO_FILES" = "" ]; then
    
;