From 51c8acbadfb2f9d8f925024e4869c90a53c40aea Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Mon, 26 Feb 2024 16:33:53 +0100 Subject: [PATCH] =?UTF-8?q?feat(go):=20add=20=E2=80=B9gofmt=E2=80=BA=20hoo?= =?UTF-8?q?k?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Matej Focko --- .pre-commit-hooks.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) 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