From cbb71341e39134276c0c1f632381d9ea8cdc5513 Mon Sep 17 00:00:00 2001 From: Victor Frazao Date: Sat, 13 Mar 2021 18:40:32 -0500 Subject: [PATCH] pkg(go-1.16.2): Added go 1.16.2 --- packages/go/1.16.2/build.sh | 4 ++++ packages/go/1.16.2/environment | 2 ++ packages/go/1.16.2/metadata.json | 6 ++++++ packages/go/1.16.2/run | 3 +++ packages/go/1.16.2/test.go | 7 +++++++ 5 files changed, 22 insertions(+) create mode 100755 packages/go/1.16.2/build.sh create mode 100644 packages/go/1.16.2/environment create mode 100644 packages/go/1.16.2/metadata.json create mode 100644 packages/go/1.16.2/run create mode 100644 packages/go/1.16.2/test.go diff --git a/packages/go/1.16.2/build.sh b/packages/go/1.16.2/build.sh new file mode 100755 index 0000000..b2481f2 --- /dev/null +++ b/packages/go/1.16.2/build.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +wget https://golang.org/dl/go1.16.2.linux-amd64.tar.gz +tar -xzf go1.16.2.linux-amd64.tar.gz +rm go1.16.2.linux-amd64.tar.gz diff --git a/packages/go/1.16.2/environment b/packages/go/1.16.2/environment new file mode 100644 index 0000000..1788638 --- /dev/null +++ b/packages/go/1.16.2/environment @@ -0,0 +1,2 @@ +export PATH=$PWD/go/bin:$PATH +export GOPATH=$PWD/gopath \ No newline at end of file diff --git a/packages/go/1.16.2/metadata.json b/packages/go/1.16.2/metadata.json new file mode 100644 index 0000000..7f9e443 --- /dev/null +++ b/packages/go/1.16.2/metadata.json @@ -0,0 +1,6 @@ +{ + "language": "go", + "version": "1.16.2", + "author": "Victor Frazao ", + "aliases": ["go", "golang"] +} diff --git a/packages/go/1.16.2/run b/packages/go/1.16.2/run new file mode 100644 index 0000000..67fc46f --- /dev/null +++ b/packages/go/1.16.2/run @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +GOCACHE=$PWD go run $* diff --git a/packages/go/1.16.2/test.go b/packages/go/1.16.2/test.go new file mode 100644 index 0000000..c06f485 --- /dev/null +++ b/packages/go/1.16.2/test.go @@ -0,0 +1,7 @@ +package main + +import "fmt" + +func main() { + fmt.Println("OK") +}