11 lines
201 B
Batchfile
11 lines
201 B
Batchfile
@echo off
|
|
cd /d %~dp0
|
|
go build -o .\client.exe test.go
|
|
if %errorlevel% equ 0 (
|
|
echo 编译成功!可执行文件位于: .\client.exe
|
|
) else (
|
|
echo 编译失败!
|
|
exit /b %errorlevel%
|
|
)
|
|
|