github.com/waldiirawan/apm-agent-go/v2@v2.2.2/scripts/check_goimports.sh (about)

     1  #!/bin/sh
     2  set -e
     3  
     4  out=$(GOIMPORTSFLAGS=-l ./scripts/goimports.sh)
     5  if [ -n "$out" ]; then
     6    out=$(echo $out | sed 's/ /\n - /')
     7    printf "goimports differs:\n - $out\n" >&2
     8    exit 1
     9  fi