mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 07:28:06 -05:00
sharding: merge upstream Former-commit-id: 5129a4d5bc4395cd7c115b7f8db23541a512df3f [formerly e4f2b25a4277464c51b4c45384114a305464d3c4] Former-commit-id: 2b4f0e356d3823889466d0f6ff22d5632f827f48
19 lines
362 B
Bash
Executable File
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
|