@echo off set CGO_ENABLED=0 set GOARCH=amd64 set GOOS=linux set APP_NAME=%GOOS%_%GOARCH%_app echo complie ... go build -o %APP_NAME% main.go echo complie output %APP_NAME%