Files
assetx/webapp-back/scripts/gofmt.sh
default 2ee4553b71 init: 初始化 AssetX 项目仓库
包含 webapp(Next.js 用户端)、webapp-back(Go 后端)、
antdesign(管理后台)、landingpage(营销落地页)、
数据库 SQL 和配置文件。
2026-03-27 11:26:43 +00:00

16 lines
336 B
Bash

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