diff --git a/packages/go/1.22.2/build.sh b/packages/go/1.22.2/build.sh new file mode 100755 index 0000000..6111f06 --- /dev/null +++ b/packages/go/1.22.2/build.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +curl -LO https://go.dev/dl/go1.22.2.linux-amd64.tar.gz +tar -xzf go1.22.2.linux-amd64.tar.gz +rm go1.22.2.linux-amd64.tar.gz diff --git a/packages/go/1.22.2/environment b/packages/go/1.22.2/environment new file mode 100644 index 0000000..88299c1 --- /dev/null +++ b/packages/go/1.22.2/environment @@ -0,0 +1,2 @@ +export PATH=$PWD/go/bin:$PATH +export GOPATH=$PWD/gopath diff --git a/packages/go/1.22.2/metadata.json b/packages/go/1.22.2/metadata.json new file mode 100644 index 0000000..1284d1c --- /dev/null +++ b/packages/go/1.22.2/metadata.json @@ -0,0 +1,5 @@ +{ + "language": "go", + "version": "1.22.2", + "aliases": ["go", "golang"] +} diff --git a/packages/go/1.22.2/run b/packages/go/1.22.2/run new file mode 100644 index 0000000..0e2b1d9 --- /dev/null +++ b/packages/go/1.22.2/run @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +mv $1 $1.go +filename=*.go +shift +GOCACHE=$PWD go run $filename "$@" diff --git a/packages/go/1.22.2/test.go b/packages/go/1.22.2/test.go new file mode 100644 index 0000000..c06f485 --- /dev/null +++ b/packages/go/1.22.2/test.go @@ -0,0 +1,7 @@ +package main + +import "fmt" + +func main() { + fmt.Println("OK") +}