Skip to content

Commit

Permalink
pkg(go-1.20.1): Add Go 1.20.1
Browse files Browse the repository at this point in the history
  • Loading branch information
e-sp committed Mar 5, 2023
1 parent c92c2d0 commit a419238
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/go/1.20.1/build.sh
Original file line number Diff line number Diff line change
@@ -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

2 changes: 2 additions & 0 deletions packages/go/1.20.1/environment
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export PATH=$PWD/go/bin:$PATH
export GOPATH=$PWD/gopath
9 changes: 9 additions & 0 deletions packages/go/1.20.1/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"language": "go",
"version": "1.20.1",
"aliases": ["go", "golang"],
"limit_overrides": {
"max_process_count": 128
},
"run_timeout": 5000
}
7 changes: 7 additions & 0 deletions packages/go/1.20.1/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

mv $1 $1.go
#filename=$1.go
filename=*.go
shift
GOCACHE=$PWD go run -v -x -work $filename "$@"
7 changes: 7 additions & 0 deletions packages/go/1.20.1/test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package main

import "fmt"

func main() {
fmt.Println("OK")
}

0 comments on commit a419238

Please sign in to comment.