pkg(go-1.16.2): Added go 1.16.2

This commit is contained in:
Victor Frazao 2021-03-13 18:40:32 -05:00 committed by Thomas
parent a1aba52c3a
commit cbb71341e3
5 changed files with 22 additions and 0 deletions

4
packages/go/1.16.2/build.sh vendored Executable file
View File

@ -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

2
packages/go/1.16.2/environment vendored Normal file
View File

@ -0,0 +1,2 @@
export PATH=$PWD/go/bin:$PATH
export GOPATH=$PWD/gopath

6
packages/go/1.16.2/metadata.json vendored Normal file
View File

@ -0,0 +1,6 @@
{
"language": "go",
"version": "1.16.2",
"author": "Victor Frazao <luiz_victor_frazao@hotmail.com>",
"aliases": ["go", "golang"]
}

3
packages/go/1.16.2/run vendored Normal file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
GOCACHE=$PWD go run $*

7
packages/go/1.16.2/test.go vendored Normal file
View File

@ -0,0 +1,7 @@
package main
import "fmt"
func main() {
fmt.Println("OK")
}