2
0
mirror of https://github.com/status-im/op-geth.git synced 2025-02-22 03:28:25 +00:00
2018-06-26 22:04:27 +09:00

19 lines
362 B
Bash
Executable File

#!/bin/sh
find_files() {
find . ! \( \
\( \
-path '.github' \
-o -path './build/_workspace' \
-o -path './build/bin' \
-o -path './crypto/bn256' \
-o -path '*/vendor/*' \
\) -prune \
\) -name '*.go'
}
GOFMT="gofmt -s -w"
GOIMPORTS="goimports -w"
find_files | xargs $GOFMT
find_files | xargs $GOIMPORTS