bbolt/scripts/fix.sh

4 lines
181 B
Bash
Executable File

#!/bin/bash
go list --f '{{with $d:=.}}{{range .GoFiles}}{{$d.Dir}}/{{.}}{{"\n"}}{{end}}{{end}}' ./... | xargs go run golang.org/x/tools/cmd/goimports@latest -w -local go.etcd.io