2024-08-13 16:31:28 +02:00
|
|
|
@echo off
|
|
|
|
setlocal enabledelayedexpansion
|
|
|
|
|
2024-10-22 21:58:06 +02:00
|
|
|
rem Use the current directory where the script is executed
|
|
|
|
pushd %~dp0
|
2024-08-13 16:31:28 +02:00
|
|
|
|
2024-10-22 21:58:06 +02:00
|
|
|
rem Collect all .go files in the current directory
|
|
|
|
set GO_FILES=
|
2024-08-13 16:31:28 +02:00
|
|
|
for %%f in (*.go) do (
|
2024-10-22 21:58:06 +02:00
|
|
|
set GO_FILES=!GO_FILES! %%f
|
2024-08-13 16:31:28 +02:00
|
|
|
)
|
|
|
|
|
2024-10-22 21:58:06 +02:00
|
|
|
rem Run the Go program with all the .go files
|
|
|
|
go run !GO_FILES!
|
2024-08-13 16:31:28 +02:00
|
|
|
|
|
|
|
rem Return to the original directory
|
|
|
|
popd
|