go-pingbot/pre-commit.sh

10 lines
75 B
Bash
Executable File

#!/usr/bin/bash
go mod tidy
# Lint
go fmt ./...
# Add changes
git add .