summaryrefslogtreecommitdiffstats
path: root/src/go/plugin/go.d/hack/go-fmt.sh
blob: fcc9e2d57255477bfe71c8d5ee784dc0d95b6c66 (plain)
1
2
3
4
5
6
7
8
#!/bin/sh

# SPDX-License-Identifier: GPL-3.0-or-later

for TARGET in "${@}"; do
  find "${TARGET}" -name '*.go' -exec gofmt -s -w {} \+
done
git diff --exit-code