feat: makefile support go sort imports (#282)

This commit is contained in:
Ashing Zheng
2023-09-07 23:01:14 +08:00
committed by GitHub
parent 24d40aba48
commit f3973180ea
15 changed files with 44 additions and 18 deletions

11
scripts/goimports-reviser.sh Executable file
View 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