diff --git a/lefthook.yml b/lefthook.yml new file mode 100644 index 00000000..2dfa23dc --- /dev/null +++ b/lefthook.yml @@ -0,0 +1,6 @@ +pre-commit: + commands: + gofmt: + glob: "*.go" + run: gofmt -w {staged_files} + stage_fixed: true