lingsamuel commented on issue #879:
URL:
https://github.com/apache/apisix-ingress-controller/issues/879#issuecomment-1047597239
We may also need a unified formatting tool (just a suggestion).
Example script:
```bash
#!/bin/bash
set -e
go install github.com/incu6us/goimports-reviser/v2@latest
PROJECT_NAME=github.com/apache/apisix-ingress-controller
while IFS= read -r -d '' file; do
goimports-reviser -file-path "$file" -project-name $PROJECT_NAME
done < <(find . -name '*.go' -not -path "./test/*" -print0)
PROJECT_NAME=github.com/apache/apisix-ingress-controller/test/e2e
while IFS= read -r -d '' file; do
goimports-reviser -file-path "$file" -project-name $PROJECT_NAME
done < <(find . -name '*.go' -path "./test/*" -print0)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]