Skip to content

Commit f8f2e6f

Browse files
committed
pkg(go-1.20.1): Add Go 1.20.1
1 parent c92c2d0 commit f8f2e6f

File tree

5 files changed

+30
-0
lines changed

5 files changed

+30
-0
lines changed

Diff for: packages/go/1.20.1/build.sh

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
curl -LO https://golang.org/dl/go1.20.1.linux-amd64.tar.gz
3+
tar -xzf go1.20.1.linux-amd64.tar.gz
4+
rm go1.20.1.linux-amd64.tar.gz
5+

Diff for: packages/go/1.20.1/environment

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export PATH=$PWD/go/bin:$PATH
2+
export GOPATH=$PWD/gopath

Diff for: packages/go/1.20.1/metadata.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"language": "go",
3+
"version": "1.20.1",
4+
"aliases": ["go", "golang"],
5+
"limit_overrides": {
6+
"max_process_count": 128,
7+
"run_timeout": 5000
8+
}
9+
}

Diff for: packages/go/1.20.1/run

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
mv $1 $1.go
4+
#filename=$1.go
5+
filename=*.go
6+
shift
7+
GOCACHE=$PWD go run $filename "$@"

Diff for: packages/go/1.20.1/test.go

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package main
2+
3+
import "fmt"
4+
5+
func main() {
6+
fmt.Println("OK")
7+
}

0 commit comments

Comments
 (0)