init: 初始化 AssetX 项目仓库
包含 webapp(Next.js 用户端)、webapp-back(Go 后端)、 antdesign(管理后台)、landingpage(营销落地页)、 数据库 SQL 和配置文件。
This commit is contained in:
15
webapp-back/scripts/gofmt.sh
Normal file
15
webapp-back/scripts/gofmt.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Check if all Go files are properly formatted
|
||||
unformatted=$(gofmt -l .)
|
||||
echo "$unformatted"
|
||||
|
||||
if [ -n "$unformatted" ]; then
|
||||
echo "There is unformatted code, you should use 'go fmt ./...' to format it."
|
||||
echo "Unformatted files:"
|
||||
echo "$unformatted"
|
||||
exit 1
|
||||
else
|
||||
echo "Codes are formatted."
|
||||
exit 0
|
||||
fi
|
||||
Reference in New Issue
Block a user