netdata/netdata

View on GitHub
src/go/collectors/go.d.plugin/hack/go-fmt.sh

Summary

Maintainability
Test Coverage
#!/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