diff --git a/packages/go/1.20.1/build.sh b/packages/go/1.20.1/build.sh new file mode 100755 index 0000000..20144f8 --- /dev/null +++ b/packages/go/1.20.1/build.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +curl -LO https://golang.org/dl/go1.20.1.linux-amd64.tar.gz +tar -xzf go1.20.1.linux-amd64.tar.gz +rm go1.20.1.linux-amd64.tar.gz + diff --git a/packages/go/1.20.1/environment b/packages/go/1.20.1/environment new file mode 100644 index 0000000..88299c1 --- /dev/null +++ b/packages/go/1.20.1/environment @@ -0,0 +1,2 @@ +export PATH=$PWD/go/bin:$PATH +export GOPATH=$PWD/gopath diff --git a/packages/go/1.20.1/metadata.json b/packages/go/1.20.1/metadata.json new file mode 100644 index 0000000..9e2aae1 --- /dev/null +++ b/packages/go/1.20.1/metadata.json @@ -0,0 +1,9 @@ +{ + "language": "go", + "version": "1.20.1", + "aliases": ["go", "golang"], + "limit_overrides": { + "max_process_count": 128, + "run_timeout": 5000 + } +} diff --git a/packages/go/1.20.1/run b/packages/go/1.20.1/run new file mode 100644 index 0000000..65c9a4f --- /dev/null +++ b/packages/go/1.20.1/run @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +mv $1 $1.go +#filename=$1.go +filename=*.go +shift +GOCACHE=$PWD go run $filename "$@" diff --git a/packages/go/1.20.1/test.go b/packages/go/1.20.1/test.go new file mode 100644 index 0000000..c06f485 --- /dev/null +++ b/packages/go/1.20.1/test.go @@ -0,0 +1,7 @@ +package main + +import "fmt" + +func main() { + fmt.Println("OK") +}