linux:
set GOARCH=amd64 set GOOS=linux go build -o app_name main.go echo "编译完成,任意键退出" pause
windows:
set GOARCH=amd64 set GOOS=windows go build -o app_name.exe main.go echo "编译完成,任意键退出" pause
补充:
linux:
set GOARCH=amd64 set GOOS=linux go build -o app_name main.go echo "编译完成,任意键退出" pause
windows:
set GOARCH=amd64 set GOOS=windows go build -o app_name.exe main.go echo "编译完成,任意键退出" pause
补充: