mirror of
https://github.com/eryajf/chatgpt-dingtalk.git
synced 2025-10-05 08:07:03 +08:00
feat: makefile support go sort imports (#282)
This commit is contained in:
11
scripts/goimports-reviser.sh
Executable file
11
scripts/goimports-reviser.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
go install github.com/incu6us/goimports-reviser/v2@latest
|
||||
|
||||
PROJECT_NAME=github.com/eryajf/chatgpt-dingtalk
|
||||
|
||||
find . -name '*.go' -print0 | while IFS= read -r -d '' file; do
|
||||
goimports-reviser -file-path "$file" -project-name "$PROJECT_NAME"
|
||||
done
|
Reference in New Issue
Block a user