Skip to content

Instantly share code, notes, and snippets.

@alex3305
Created February 7, 2015 11:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alex3305/84789bd9675600024930 to your computer and use it in GitHub Desktop.
Save alex3305/84789bd9675600024930 to your computer and use it in GitHub Desktop.
Windows Go Shortcuts
@echo off
setlocal EnableDelayedExpansion
for /f %%A in ('forfiles /s /m *.go /c "cmd /c echo @relpath"') do SET "files=!files! %%~A"
go build %files%
ENDLOCAL
@echo off
setlocal EnableDelayedExpansion
for /f %%A in ('forfiles /s /m *.go /c "cmd /c echo @relpath"') do SET "files=!files! %%~A"
go run %files%
ENDLOCAL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment