github.com/netdata/go.d.plugin@v0.58.1/hack/go-fmt.sh (about)

     1  #!/bin/sh
     2  
     3  # SPDX-License-Identifier: GPL-3.0-or-later
     4  
     5  for TARGET in "${@}"; do
     6    find "${TARGET}" -name '*.go' -exec gofmt -s -w {} \+
     7  done
     8  git diff --exit-code