goimports-reviser.sh 267 B

1234567891011
  1. #!/bin/bash
  2. set -e
  3. go install github.com/incu6us/goimports-reviser/v2@latest
  4. PROJECT_NAME=github.com/eryajf/chatgpt-dingtalk
  5. find . -name '*.go' -print0 | while IFS= read -r -d '' file; do
  6. goimports-reviser -file-path "$file" -project-name "$PROJECT_NAME"
  7. done