diff options
Diffstat (limited to 'src/go/plugin/go.d/hack/go-fmt.sh')
-rwxr-xr-x | src/go/plugin/go.d/hack/go-fmt.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/go/plugin/go.d/hack/go-fmt.sh b/src/go/plugin/go.d/hack/go-fmt.sh new file mode 100755 index 00000000..fcc9e2d5 --- /dev/null +++ b/src/go/plugin/go.d/hack/go-fmt.sh @@ -0,0 +1,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 |