Files
chatgpt-dingtalk/scripts/goimports-reviser.sh
2023-09-07 23:01:14 +08:00

12 lines
267 B
Bash
Executable File

#!/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