diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 023fa8a..6e58e97 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -54,3 +54,14 @@ types: - rust pass_filenames: false + +# Go +- id: gofmt + name: gofmt + description: Format Go sources with ‹gofmt›. + entry: gofmt + args: + - "-w" + language: system + types: + - go