Skip to content

Instantly share code, notes, and snippets.

@hymkor
Last active November 4, 2025 19:16
Show Gist options
  • Select an option

  • Save hymkor/60342283a7631f89b024f48cc371143d to your computer and use it in GitHub Desktop.

Select an option

Save hymkor/60342283a7631f89b024f48cc371143d to your computer and use it in GitHub Desktop.
go work で、サブコマンドが init と use に分かれているのが微妙に使いにくいので作った、一括作成と削除をするバッチファイル
@echo off
@setlocal
@set PROMPT=$G$S
if "%~1" == "" goto :clean
@echo on
go1.20.14 work init
go1.20.14 work use %*
@exit /b
:clean
@echo on
del "%~dp0%go.work*"
@rem gist https://gist.github.com/hymkor/60342283a7631f89b024f48cc371143d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment