mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-03 00:27:38 +00:00
1cf6747d06
Former-commit-id: 6a2a7c34e451465eae5d78f76e310e36a412d848 [formerly 6294fcfb3a206061cc8f9309f945f9b0c5a332a2] Former-commit-id: e2d352442cc4b45620454ac6ece0f8d3d564ed11
18 lines
403 B
Bash
Executable File
18 lines
403 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
find_files() {
|
|
find . -not \( \
|
|
\( \
|
|
-wholename '.github' \
|
|
-o -wholename './build/_workspace' \
|
|
-o -wholename './build/bin' \
|
|
-o -wholename './crypto/bn256' \
|
|
-o -wholename '*/vendor/*' \
|
|
\) -prune \
|
|
\) -name '*.go'
|
|
}
|
|
|
|
GOFMT="gofmt -s -w";
|
|
GOIMPORTS="goimports -w";
|
|
find_files | xargs $GOFMT;
|
|
find_files | xargs $GOIMPORTS; |