From 72b9fbf1eb3fbfe6284d2717c6646c807a2ba484 Mon Sep 17 00:00:00 2001 From: XinruShan Date: Sun, 5 Dec 2021 18:33:04 +0800 Subject: [PATCH] add installer alias for go --- go/install.ps1 | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 go/install.ps1 diff --git a/go/install.ps1 b/go/install.ps1 new file mode 100644 index 0000000..4ff8147 --- /dev/null +++ b/go/install.ps1 @@ -0,0 +1,5 @@ +#!/bin/pwsh + +echo "'go@$Env:WEBI_TAG' is an alias for 'golang@$Env:WEBI_VERSION'" +IF ($Env:WEBI_HOST -eq $null -or $Env:WEBI_HOST -eq "") { $Env:WEBI_HOST = "https://webinstall.dev" } +curl.exe -fsSL "$Env:WEBI_HOST/golang@$Env:WEBI_VERSION" | powershell \ No newline at end of file